Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
88 | |
77 | |
58 | |
44 | |
38 |
User | Count |
---|---|
115 | |
81 | |
81 | |
52 | |
39 |