Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello! I have such a slicer which data is regions of the country. As you can see here you can see that we can select multiple selections. Now I want to make in a such way that if there is no selection I want to show data from a specific value. For example, I I want to see "Akmola" region data if the slicer data is not selected (which means All), however if the slicer selected then appropriate data should be shown, in other cases "Akmola" must be shown. How can I do that?
Solved! Go to Solution.
@Anonymous , Assume you have a measure on which you want to do this, create a new measure like
if(isfiltered(Table[Region]), [measure], calculate([measure], filter(Table, Table[Region]="Akmola" )))
refer:https://www.youtube.com/watch?v=hXg3kRFSGjA
Hi @Anonymous ,
Since you don't have any measure. Try this
=IF(ISFILTERED(TABLE[REGION]), SUM(TABLE[VALUES]), CALCULATE(SUM(TABLE[VALUES]),FILTER(TABLE, [REGION]= "Akmola")))
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Assume you have a measure on which you want to do this, create a new measure like
if(isfiltered(Table[Region]), [measure], calculate([measure], filter(Table, Table[Region]="Akmola" )))
Thanks for answering. What if I do not have any measure? Because I am directly inputting the data to the table without any calculations(I am not using any measure).
So I have tables, Table["Region"](String) and Table["Values"](Whole number)
Hi @Anonymous ,
Since you don't have any measure. Try this
=IF(ISFILTERED(TABLE[REGION]), SUM(TABLE[VALUES]), CALCULATE(SUM(TABLE[VALUES]),FILTER(TABLE, [REGION]= "Akmola")))
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
79 | |
59 | |
36 | |
35 |
User | Count |
---|---|
99 | |
56 | |
56 | |
46 | |
40 |