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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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]).
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 59 | |
| 42 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 109 | |
| 100 | |
| 39 | |
| 29 | |
| 29 |