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 have a requirement to calculate financial report variance which has Actual and Forecast columns, ideally variance should be Actual-Forecast but since my user is looking for a different requirement as shown below. The forecast column for Period 1 and 2 are empty so there he wants actual to be displayed also, in periods where forecast is existing irrespective of actual values present or not he wants forecast to be displayed, which is same as "2+10" row.
Please help em to create DAX for "2+10" row DAX.
Any help would be highly appreciated.
Thanks In Advance,
Neelofar Shama.
Solved! Go to Solution.
Hi @neelofarshama ,
You could use the following steps:
Step1 ,import data and then transpose table, then apply and colse :
Step 2,use the following measure:
two and ten =
var test1=if(MAX('Table'[Column3])="Actual","ten and two",MAX('Table'[Column3]))
var test2=IF(test1<>BLANK(),test1,MAX('Table'[Column2]))
return test2
Wish it is helpful for you !
Best Regards
Lucien
Hi @neelofarshama ,
You could use the following steps:
Step1 ,import data and then transpose table, then apply and colse :
Step 2,use the following measure:
two and ten =
var test1=if(MAX('Table'[Column3])="Actual","ten and two",MAX('Table'[Column3]))
var test2=IF(test1<>BLANK(),test1,MAX('Table'[Column2]))
return test2
Wish it is helpful for you !
Best Regards
Lucien
@neelofarshama , Try a measure like assuming actual and forecast are measures
Measure = if(isblank([actual], [forecast],[actual])
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 |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |