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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
krzysztof
Helper III
Helper III

Showing revenue at benchmark stores

I've created a metric for the semantic stores. Unfortunately, it doesn't work with a date filter
Sample pbx: https://drive.google.com/open?id=1L2b9YIReTt27xSTmoBU8NCzDAO8QsGxO 

My metric: 

Revenue Bench Store = 
VAR myStore = VALUES( Store_Benchmarking[StoreID_Bench] )
VAR Result = CALCULATE( [Revenue Measure] ; ALL(Sales) ; Sales[StoreID] IN myStore )
RETURN
Result

 

1.png

2.png

 

 

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi @krzysztof

 

Try to modify your measure as below:

 

Revenue Bench Store = 
VAR myStore = VALUES( Store_Benchmarking[StoreID_Bench] )
VAR Result = CALCULATE( [Revenue Measure] , ALL(Sales),FITER('Sales', Sales[StoreID] IN myStore ))
RETURN
Result

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

 

 

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi @krzysztof

 

Try to modify your measure as below:

 

Revenue Bench Store = 
VAR myStore = VALUES( Store_Benchmarking[StoreID_Bench] )
VAR Result = CALCULATE( [Revenue Measure] , ALL(Sales),FITER('Sales', Sales[StoreID] IN myStore ))
RETURN
Result

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

 

 

Mariusz
Community Champion
Community Champion

Hi @krzysztof 

 

ALL( Sales ) is removing filters coming from date, you can use ALLEXCEPT( Sales, Date ) instead.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.