Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

Need help Tableau to DAX

Hi, 

 

Can you help me convert this TABLEAU formula to DAX?: 

 

if [Status]= 'Added' then [Frequency]
else -1*[Frequency]
end

 

Many thanks! 

6 REPLIES 6
Tahreem24
Super User
Super User

@Anonymous Create a dax like this:

 = IF(Table[Status] = "Added" , [Frequency],-1*[Frequency])

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

Hi, 

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 . 

@Anonymous 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.

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

Hi, 

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. 

Status Frequency
Added -8
Added 4.3
Added -6.1
Taken 10
Taken 5.87
Taken 7.23
Taken -4.13
Taken 0.5
Taken -12
Taken 8

@Anonymous Use this DAX:

 IF(Table[Status] = "Added" , SUM(Frequency), -1*SUM(Frequency) 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

With this formula I have the text column as a suggestion, but the column status is still not available from this table

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.