Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AQ_2022
New Member

Measure behave differently when data source is PBI dataset set

Hi All,
 
I used this measure to count number of ID with group name = ABC while ignore any report level filter on group name. 
 
#ID = CALCULATE(count(Table[ID]), filter(all(Table[Group Name]),Table[Group Name] = "ABC"))
 
This measure worked perfectly on my PBI report with dataset, when I added page level filter Group Nme <> ABC, the #ID = 10. 
 
But when I publish this dataset and import it into a differet report, this measure stopped working, that is, when I add page level filter Group Nme <> ABC, the #ID = (blank). 
 
Is it a bug or where I did wrong? What is the workaround for this? 
 
Thank you.
 
Anna
 
 
2 REPLIES 2
AQ_2022
New Member

Hi Chenwu, thanks for replying my post. It is a flat table so no relationship at all.  No RLS applied either.  

Excat same report worked if it was in the report with dataset rather than a report importing the dataset. 

 

v-chenwuz-msft
Community Support
Community Support

Hi @AQ_2022 ,

 

As a rule, it would not look like this. ALL will remove all the filter. Is that the underlying table have no group = "ABC" in the published dataset? The user may has been applied with a RLS role, for the user, he has no row which group ="ABC".

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Kudoed Authors