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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
newbieNG
Regular Visitor

How to convert Tableau Measures in Power BI DAX expression?

I am migrating a Tableau Dashboard in PowerBI where I came across several Measures which I am not able to convert into DAX. If someone can help me understand will be really helpful & appreciative.

1.

{ FIXED : AVG(
{ FIXED DATETRUNC("month", [Start Time]): SUM(IF DATEPART('day', [Start Time])<= DATEPART('day', TODAY())
THEN [Compute Cost] END
)}
)}
2.
{ FIXED DATEPART('weekday', [Start Time]), DATEPART('hour', [Start Time]): AVG(
{ FIXED DATETRUNC('day', [Start Time]), DATEPART('weekday', [Start Time]), DATEPART('hour', [Start Time]):
COUNTD([Warehouse Name])}
)}
Thank you 
2 REPLIES 2
amitchandak
Super User
Super User

@newbieNG , Try like


Averagex(Values(Table[Month Year]) ,calculate(
sumx(filter(Table, day([Start Time]) <= day(today()) ), [Compute Cost]), allexcept(Table,Table[Month Year])))

 

whenever you need a column, make sure it is already created like month year, and year. You may not able to use expression

 

refer if needed

Tableau Vs Power BI- Chapter 6- LOD- FIXED (Level of Details): https://youtu.be/hU-cVOwDCvY

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

Thanks for prompt reply Amit. So I posted 2 queries , I think you replied for the first one. Also , in your expression where you mentioned Table , is it referencing to the name of table that I have to put?

Sorry I am a newbie to PBI as well as DAX seems complicated to me. Thanks for your help!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors