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
rpinxt
Solution Sage
Solution Sage

Calculating on Parameter fields

I have a parameter field :

rpinxt_0-1697112702771.png

Now based on the selection I want to make calculations.

I have this :

FTE Outbound = IF(MAX(PrmOutbUnits[PrmOutbUnits]) = "Outbound Direct",
CALCULATE([FTE],'AVN MD CC'[Cost Center] = "875001"),
IF(MAX(PrmOutbUnits[PrmOutbUnits]) = "Outbound Export",
CALCULATE([FTE],'AVN MD CC'[Cost Center] = "875147"),
CALCULATE([FTE],'AVN MD CC'[Cost Center] = "875001") + CALCULATE([FTE],'AVN MD CC'[Cost Center] = "875147")
))
 
If I select only 1 it works perfectly.
However if none are selected or both are selected I would expect it to do the aggregation of both.
But it is not, it then always shows the FTE of Export.
 
Where am I going wrong here?
1 ACCEPTED SOLUTION
rpinxt
Solution Sage
Solution Sage

Nevermind...should not have used MAX.

Now use selectedvalue and it works.

 

But you have to make an extra column in your parameter table being a copy of the first field (PrmOutbUnits), I named it "PrmOutbName".

The first field you cannot use because of the composite error you then get.

With the new column you will not have this problem.

View solution in original post

1 REPLY 1
rpinxt
Solution Sage
Solution Sage

Nevermind...should not have used MAX.

Now use selectedvalue and it works.

 

But you have to make an extra column in your parameter table being a copy of the first field (PrmOutbUnits), I named it "PrmOutbName".

The first field you cannot use because of the composite error you then get.

With the new column you will not have this problem.

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.