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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SaiKumar
Frequent Visitor

Tableau to Power Bi

I am currently working on migrating Tableau Reports to Power BI. I am currently facing problems in converting the Tableau Calculation to DAX in Power BI. Needed help in this.

 

Current Fiscal Quarter +1 = IF ENDSWITH([Current Fiscal Quarter],'4') THEN str(INT(left([Current Fiscal Quarter],4))+1) +'-Q'+'1'
ELSE str(INT(left([Current Fiscal Quarter],4)) ) +'-Q'+ str(INT(RIGHT([Current Fiscal Quarter],1))+1)
END

2 REPLIES 2
Greg_Deckler
Super User
Super User

@SaiKumar Here's a guess:

Current Fiscal Quarter +1 = 
  IF RIGHT([Current Fiscal Quarter],1) = "4"),
  (INT(LEFT([Current Fiscal Quarter],4))+1) & "-Q" & "1",
  LEFT([Current Fiscal Quarter],4) & "-Q" & (INT(RIGHT([Current Fiscal Quarter],1))+1)

Just a guess though, would need sample data and expected output to be sure...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thank You

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors