Reply
wangjuan303
Helper III
Helper III
Partially syndicated - Outbound

How to create total measure base on slicer

I need to create a total measure for the report, 

this measure like under screenshot, 

it need to show: 200486.88 in report. 

it will base on slicer choice, dynamic get the total number, 

and it always matches with a total of Sum of Sales,

Thank you 

 

wangjuan303_0-1685661181432.png

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Syndicated - Outbound

Hi,

Try these measures

Total = sum(Data[Sales])

Total of selected products = calculate([Total],allselected(Data[product]))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

1 REPLY 1
Ashish_Mathur
Super User
Super User

Syndicated - Outbound

Hi,

Try these measures

Total = sum(Data[Sales])

Total of selected products = calculate([Total],allselected(Data[product]))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
avatar user

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)