Forum Discussion

Mihail_C's avatar
Mihail_C
Frequent Visitor
3 years ago
Solved

Sum IF or something else

Hello community,

 

I am new to PowerBI and still struggling to understand what would be the best solution for my problem.

 

I have a table that holds a report type which is text value ('P&L', 'CAPEX', 'ASSET') and a budget column that holds numerical values.

 

We used for now data for the first two report types until now and the budget was just a measure that divided by 1000 to keep the numbers low and more easily readable.

 
Budget_K = sum('FinMgmt_FY23'[Budget])/1000
 
Now, after inserting ASSET data, which is basically asset count, not asset cost, the report is not looking as great. I am trying to see what DAX function would be more appropriate to show [Budget])/1000 when the report type is ('P&L', 'CAPEX') and to show just [Budget] value when report type is 'ASSET'.
 
The report is now filtered based on report type via a slicer.
I tried to check an IF clause but is not working for me because the report type is not a measure so i cant select it in IF clause.
 
Any help would be appreciated.
 
Thank you
 
 

3 Replies