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
mjain9
New Member

Level of Detail Calcs to DAX

Hello 

 

I am currenctly trying to get diffrent reports from Tableau to DAX. I am really a beginner at DAX but can someone explain what the formula below in Tableau does and help me convert it to PowerBI DAX. 

 

 This is what i have in LOD  ; 

IF ATTR([Branch]) = 'Specialist' THEN

SUM({ FIXED [Branch], [Manager],[Product Group],[Scorecard Category Type]: AVG([Manager Revenue Goal])})

ELSE

SUM({ FIXED [Branch], [Manager],[Region], [Product Group],[Scorecard Category Type], [Segment]: AVG([Manager Revenue Goal])})

END

 

 

And the Dax I wrote : 

CALCULATE(AVERAGEx(FILTER(score, score[Manager Revenue Goal] <> BLANK()), score[Manager Revenue Goal]), ALLEXCEPT(score, score[Branch], score[Manager], score[Region], score[Product Group], score[Scorecard Category Type], score[Segment]))

 

 

Unfortunately, My final results are not matching. Can somebody help me with it ? What I am doing wrong ? 

 

thanks

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @mjain9,

 

As I am not familiar with LOD used in Tableau, I don't understand what above LOD code can achieve. Please post sample data and just show your desired output, if possible, describe the calculation rule detailedly, so that I can test and try to achieve the requirement with DAX.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.