Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi,
I'm trying to create a calculation based on a what if parameter, presented using a slicer.
The parameter (X) will take any value between 1 to 100.
There are four columns in the existing table:
- customer name
- current compliance level
- average sales per case
- annual target case
The calculation I'm trying to do is as follows:
Find the total revenue increase if every customer in the table increases its compliance level by X (%).
Total revenue increase = X * table[annual target case] * table[avg sales per case]
The complication is that compliance level can't go over 100%, so I need to build in a condition that if an increase in X makes the customer's compliance level > 100%, then Total revenue increase = (100% - table[current compliance level]) * table[annual target case] * table[avg sales per case]
I've tried using IF statement, MINX, measure, or calculated columns, but none of them worked, and there is the lack of interaction between the slicer and the columns that I've created.
For example this simple IF statement I've created for a column failed to interact with the total revenue increase when I move the slicer.
Also tried this query, which didn't work either.
Any idea where I got wrong or any support is greatly appreciated!
Thanks in advance!
Solved! Go to Solution.
Hi @Anonymous ,
You can use measure like bleow:
Measure = IF (
MAX ( Table[current compliance level] ) + [perc_compliance Value] > 1,
( 1 - MAX ( Table[current compliance level] ) ) * Table[annual target case] * Table[avg sales per case],
[perc_compliance Value] * Table[annual target case] * Table[avg sales per case]
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi @Anonymous ,
You can use measure like bleow:
Measure = IF (
MAX ( Table[current compliance level] ) + [perc_compliance Value] > 1,
( 1 - MAX ( Table[current compliance level] ) ) * Table[annual target case] * Table[avg sales per case],
[perc_compliance Value] * Table[annual target case] * Table[avg sales per case]
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 18 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 63 | |
| 44 | |
| 42 | |
| 40 | |
| 39 |