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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

DAX Query - Multi-conditional IF statement

Hi, 

 

I am trying to write the following in DAX, but am running into a lot of syntax issues and also having difficulty getting my DAX to correctly recognise Tables and Columns with a lot of text showing up Grey. 

 

IF('(2) Time Structure'[Quarter] =("Q1"),["0"])&('(2) Reporting Cycles'[Reporting Cycle]="Actuals 2022")&('(2) Latest Actuals'[Month]>=3),("Q1", calculate('(1f) Headcount'[Vol Leavers positive]/ '(1f) Headcount'[HC Op w PF Adj] *4, '(2) Time Structure'[Quarter] IN {"Q1"}),(BLANK())
 
This formula is then repeated 3 more times for "Q2", "Q3", and "Q4".
 
At a very basic level I want it to say: 
 
If (Quarter = Q1) & (Reporting Cycle = Actuals 2022) and (Latest Month is greater or equal to 3), then perform the calculation, if not then give value of ("0"). 
 
Thanks
1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , is it a cross table formula ?

 

refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.