The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Expert
See table below if column A has a Value and Column B is blank then see result column likewise of column A is Blank and Column B has a Value see results column...
Column A | Column B | Result |
2 | 2 | |
2 | 2 | |
5 | 5 | |
3 | 3 | |
3 | 3 |
I am trying to do this with my measure but the measure gives me either or..
Result =
VAR _AddbackActuals = CALCULATE(SUM('F Datasets'[Amount]), FILTER('F Datasets','F Datasets'[Forecasts-Actuals] = "A"),
REMOVEFILTERS('F Datasets'[Dataset]),
REMOVEFILTERS('F Datasets'[Budget Name])
)
RETURN
if(_AddbackActuals = Blank(), [Total F])
Where _AddbackActuals are the Values in Column A and [Total F] should be the values in column B
Solved! Go to Solution.
I am not exactly sure what you're trying to achieve but you could use COALESCE to return the first non-blank value among a list of values. Example:
COALESCE ( [columnA measure], [columnB measure] )
I am not exactly sure what you're trying to achieve but you could use COALESCE to return the first non-blank value among a list of values. Example:
COALESCE ( [columnA measure], [columnB measure] )
Hi @WhaleWatcher222
Please try this DAX
Result =
VAR _AddbackActuals = CALCULATE(SUM('F Datasets'[Amount]), FILTER('F Datasets','F Datasets'[Forecasts-Actuals] = "A"),
REMOVEFILTERS('F Datasets'[Dataset]),
REMOVEFILTERS('F Datasets'[Budget Name])
)
RETURN
If(ISBLANK(_AddbackActuals),[Total F],_AddbackActuals)
Proud to be a Super User! | |
Hi! Here is the measure I created to test it out and appears to be working:
If you need the result (dynamic sum) measue to also sum the values, you can use this instead:
Proud to be a Super User! | |