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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Tableau formula into power bi Dax

How can I write this formula in Power BI

100 * SUM([Sales])
/
TOTAL(SUM({ fixed [Retailer1], [Product Category1], [Product Sub-Category1], [DateFilter] : SUM([Sales])}))

and

Is there any in detailed blog or video which can explain me how to convert Tableau LOD into DAX

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Fixed is a little bit tricky . It need to be forced at fact table level, you can not do with diemension

 

Divide(100 * SUM([Sales])
, calculate(SUM([Sales]), filter(all(Table), [Retailer1] = max([Retailer1]) && [Product Category1] = Max([Product Category1])
&& [Product Sub-Category1] = max([Product Sub-Category1])))
)

 

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

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
Anonymous
Not applicable

How do we incorporate date filter in it?

@Anonymous ,

 

if you want to add filter one is allselected

 

Divide(100 * SUM([Sales])
, calculate(SUM([Sales]), filter(allselected(Table), [Retailer1] = max([Retailer1]) && [Product Category1] = Max([Product Category1])
&& [Product Sub-Category1] = max([Product Sub-Category1])))
)

 

second is

 

Divide(100 * SUM([Sales])
, calculate(SUM([Sales]), filter(all(Table), [Retailer1] = max([Retailer1]) && [Product Category1] = Max([Product Category1])
&& [Product Sub-Category1] = max([Product Sub-Category1])

Table[Date] in allselected('Date'[Date]) 0 ))
)

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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