0

I have a table with the Country and Date columns.

Table

I have a slicer with Country and Date, now as I select the slicers for UK and May-21, it shows blank as the data is not there for May-21.

Blank Output

Now I always want to display the selected country whether there is data or not. I tried creating a measure using DAX, REMOVEFILTERS, and many other things but it's not working.

Any help would be appreciated. Thanks.

1 Answer 1

0

use this code :

SELECTED COUNTRY = 
var __coutries = CALCULATETABLE(values('your table name'[Country]), ALLEXCEPT('your table name','your table name'[Country]))
RETURN 
    IF(COUNTROWS(__coutries) == 1, __coutries, "")

this article reveals how to manage the familly of allxxx functions.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.