Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Dear Power BI community,
I am seeking for your support regarding the following question:
I have two columns:
* Column 1 with actual sales
* Column 2 with budget sales
* Both stored in a table showing these values per week
I want to create a third column (Column 3 - Calculated Sales) as a new measure which should contain the value per week from column 1. If this column does not have a value, the value should be taken from column 2.
Can someone help me with the DAX formula to be used?
Below a screenshot of the desired output:
Thanks in advance for any suggestion.
Solved! Go to Solution.
@Anonymous
You can add as a Column
Calculated Sales= IF( ISBLANK(Table[Actual Sales]) , Table[Budget Sales] , Table[Actual Sales])
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Anonymous
Yes, possible
Calculated Sales= IF( ISBLANK(max(Table[Actual Sales])) , max(Table[Budget Sales]) , max(Table[Actual Sales]))
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Anonymous
You can add as a Column
Calculated Sales= IF( ISBLANK(Table[Actual Sales]) , Table[Budget Sales] , Table[Actual Sales])
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thanks. Can this also be done as a new measure?
@Anonymous
Yes, possible
Calculated Sales= IF( ISBLANK(max(Table[Actual Sales])) , max(Table[Budget Sales]) , max(Table[Actual Sales]))
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |