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
Power BI Community,
I have a sample data such as below.
When a column "Sequence" is "Actual", I have actual data in rebate column.
When a column "Sequence" is "Forecast", I do not have rebate data.
What I would like to do is to create a measure with if function and calculate function combinations to calculate rebate when "Sequence" is "Forecast"
For instance, I would like to calculate rebate as
However, when I try if DAX it only recognizes a measure not a column value such as "Actual" or "Forecast"
Please find below as the sample data
Thank you for your support!
H
Solved! Go to Solution.
If you are writing a measure, regardless of whether you are using an IF statement, you have to wrap any column reference in an aggregator like SUM, COUNT, MAX, MIN, etc. And, you generally need to include the table name like 'Table'[Column]. So, something like SUM('Table'[Column]).
If you are writing a measure, regardless of whether you are using an IF statement, you have to wrap any column reference in an aggregator like SUM, COUNT, MAX, MIN, etc. And, you generally need to include the table name like 'Table'[Column]. So, something like SUM('Table'[Column]).
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 36 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 135 | |
| 102 | |
| 67 | |
| 65 | |
| 56 |