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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
patboutot18
Regular Visitor

Using slicer values in measures

Hi, 

 

I need to calculate the average of a performance indicator depending on a slicer value that represents a period. Let's say the user chooses period 100, I need to calculate the average of the performance indicator for periods 96,97 and 98. So I tried to extract the value of the slicer with Selected Value and then substract 2 to that measure to get the 98 I wanted, but when I add that measure into my average measure it shows blank. Although, when I write 98 manually into the formula, it works.

 

What have I done wrong? 

 

Thanks in advance. 

1 REPLY 1
Anonymous
Not applicable

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.