Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I would like to calculate a measure based on column data and What-If-Parameter input. In my case, I have a What-If-Parameter "Financial Cap" and another one "Base Value". In addition, I have a table with two columns, ID and Relevant Compensation.
In Excel I would do something like this but I am not able to replicate this in Power BI:
As far as I know, calculated columns cannot work with What-If-Parameters. However, a measure itself cannot do this row-based evaluation before summing it up, at least not that I know. Do you have any suggestions how to solve this? I have tried various functions but I am not getting anywhere.
Solved! Go to Solution.
I was working on this before I saw the answer about SUMX. That's how you'd do with SUMX for your parameters.
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi @Anonymous ,
Based on your description, I have created two measures, one is to calculate the formula you referred, and the other is to calculate the sum.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I was working on this before I saw the answer about SUMX. That's how you'd do with SUMX for your parameters.
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi @Anonymous ,
take a look at SUMX
Returns the sum of an expression evaluated for each row in a table.
https://docs.microsoft.com/en-us/dax/sumx-function-dax
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |