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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Krishna2285
Frequent Visitor

Sales By Location As a Slicer

Hello Community,

 

I am trying to use a Slicer to filter for Sales by location.

 

I am not able to select the measure, is there a way for this?

 

Measure - Sales by Location = CALCULATE(SUM(Sales[salesTotal]),Filter(ALL(Sales[location]),Sales[location] in Values(Sales[location])))

Comm.PNG

 

 

 

Regards,

Krish

1 REPLY 1
AbbasG
Memorable Member
Memorable Member

you cannot directly use a slicer to filter a measure in visualizations. Slicers are typically used to filter dimensions or categorical fields in your data, rather than measures.

 

If I correctly understand, if your data has the location column you can use it directly to filter sales by location.

or you can create a calculated column and then use it with filter visual

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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