Can you help me convert this TABLEAU formula to DAX?:
if [Status]= 'Added' then [Frequency]
@sanastasova Create a dax like this:
= IF(Table[Status] = "Added" , [Frequency],-1*[Frequency])
I started writing the same thing. However I am not able to select [Status] and [ Frequency] from this table. I can only select created measures from this table .
@sanastasova Are you using two different tables for this? If yes so make sure you have relationship between those tables.
It would be great if you could share the sample data set of 5-10 records (dummy data) and expetcted output.
No the table is one. I cannot attach a file here. In my data set the column [Status] is text, the column [Frequency] is number. I suppose I have to make some sort of aggregation?
Here the table with the data.
@sanastasova Use this DAX:
IF(Table[Status] = "Added" , SUM(Frequency), -1*SUM(Frequency)
Take a look at the September 2023 Power BI update to learn more.
Join Microsoft Reactor and learn from developers.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.