Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a rough mock up of a chart on a dashboard with the following formula:
Hi @PBAEIGuy ,
I create two tables as you mentioned.
Then I think you can create a Parameter.
Next you can create a measure and here is the DAX code.
Measure =
SUMX(
'Test Data',
SWITCH(
TRUE(),
'Test Data'[Type] = "Type A",
'Test Data'[Values] + (CALCULATE(SUM('Test Data'[Values]),'Test Data'[Type] = "Type C") * 'Parameter'[Parameter Value]),
'Test Data'[Type] = "Type C",
'Test Data'[Values] - ('Test Data'[Values] * 'Parameter'[Parameter Value]),
'Test Data'[Values]
)
)
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I already tried that DAX, and it only seems to adjust the bars for the Type C as that reduces if the parameter value increases, but Type A doesn't increase with the value of the deduction from Type C.
Why is this?
The data I have used is a simple excel file that has 3 columns, Business Name, Type and Revenue.
I use the clustered column chart on PBI with Business Name on the X axis, Type on the legend and the above measure on the y axis.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |