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

What IF

Hello guys!
Is it possible to create scenarios (What IF) with medium ticket or markup?
If I increase my average ticket, how much profit will I have, for example?

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

Hi @EduardoAtalaia ,

 

You can try What If parameter in power bi.

vchenwuzmsft_0-1659688710841.png

 

Then create a measure to calculate Profit, please refer below.

 

Profit =
VAR cur_ticket =
    SELECTEDVALUE ( Parameter[Avg_Ticket] )
VAR cur_cost =
    SELECTEDVALUE ( 'Table'[Cost] )
RETURN
    cur_ticket - cur_cost

 

 

Result:

vchenwuzmsft_1-1659688789508.gif

 

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

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-chenwuz-msft
Community Support
Community Support

Hi @EduardoAtalaia ,

 

You can try What If parameter in power bi.

vchenwuzmsft_0-1659688710841.png

 

Then create a measure to calculate Profit, please refer below.

 

Profit =
VAR cur_ticket =
    SELECTEDVALUE ( Parameter[Avg_Ticket] )
VAR cur_cost =
    SELECTEDVALUE ( 'Table'[Cost] )
RETURN
    cur_ticket - cur_cost

 

 

Result:

vchenwuzmsft_1-1659688789508.gif

 

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Hello @v-chenwuz-msft!
Thank you for your help! I managed to create the What IF!

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.