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
asc
Frequent Visitor

what if parameter using user created measure

I have sales data with material, actual_sale, target_sale along with many columns.

I have created measure %achieved_sale which is calculated as actual_sale/target_sale.

%achieved_sale has values from 0 - 500. which means if actual = target , achieved sale=100

 

now i want slicer on %achieved_sale

so i could see material wise actual_sale, target_sale and its related columns when i select %achieved_sale slicer range

eg. if i select %achieved_sale 0 to 50, I want all details of materials whose %achieved_sale is in between 0 - 50

also i want slicer values between min(%achieved_sale) to max(%achieved_sale)

 

is it possible to achieve this with what-if parameter?

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @asc ,

 

It seems that you want to use the measure %achieved_sale as a slicer?

 

For your scenario, I'm afraid what if parameter is not your choice.

 

I'm afraid that we cannot use measure as a slicer directly in Power BI.

 

You may try a workaround. Please refer to the similar threads.

 

https://community.powerbi.com/t5/Desktop/how-to-use-calculated-measure-values-for-slicer/td-p/559458

https://community.powerbi.com/t5/Desktop/Cannot-use-measure-in-slicer/td-p/166909

 

If you still need help, please share your data sample and your desired output so that we can help further on it.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @asc ,

 

It seems that you want to use the measure %achieved_sale as a slicer?

 

For your scenario, I'm afraid what if parameter is not your choice.

 

I'm afraid that we cannot use measure as a slicer directly in Power BI.

 

You may try a workaround. Please refer to the similar threads.

 

https://community.powerbi.com/t5/Desktop/how-to-use-calculated-measure-values-for-slicer/td-p/559458

https://community.powerbi.com/t5/Desktop/Cannot-use-measure-in-slicer/td-p/166909

 

If you still need help, please share your data sample and your desired output so that we can help further on it.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you so much @v-piga-msft 

You saved my time.

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.