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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
AndyDDC
Super User
Super User

Measure syntax to show overall aggregate total when not filtered

Hi,

I'm trying to create a measure that shows the overall total in a Fact table when placed in a visual, however if the measure is placed in a visual with a Dimension table with RLS like a table, I would like the table total in that visual to reflect only the total the user can see.

 

For example, if the "Total Sales" measure is used on its own with no dimensions then it should show the total for everything.

 

If the Customer dimension is used (which has RLS) then I would like the measure to calculate the total based only on the Customer Group the user is able to see.

 

AndyDDC_0-1645445375139.png

 

I've tried using ISFILTERED but then I get the whole total in the bottomm table grid, presumably because the total is not filtered and therefore shows everything.

 

Any pointers would be appreciated.

 

Thanks

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@AndyDDC , Try isinscope and hasonevalue and check

 

https://xxlbi.com/blog/new-dax-function-isinscope/

 

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@AndyDDC , Try isinscope and hasonevalue and check

 

https://xxlbi.com/blog/new-dax-function-isinscope/

 

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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