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
jona4k
Frequent Visitor

LOD fixed Expression from Tableau

Hello there, I have a PowerBI problem that I hope you can help me with. I have to get this Tableau LOD statement in a powerBI table. 

 
image.png
 
So far I’ve tried the following DAX statement, which produced not quite the exact same results as the Tableau above.

 

image.png

Please note that the [# Fälle] measure in tableau is exactly the same as [Anz_Fälle] in PowerBI (simply a distinct count via case ID

5 REPLIES 5
v-easonf-msft
Community Support
Community Support

Hi , @jona4k 

I don't know much about the use of the lod function in tabular.

So sharing sample data and your expected results  can better help us understand your issue directly.

 

Best Regards,
Community Support Team _ Eason

I'm trying to get an average value based on these 6 dimensions. The goal is to take the "RP nach Retax" column, get the sum and then compare that sum to the a different aggregation, based on the 6 columns mentioned in the fixed statement. (these later mentioned aggregation is what I gave you as the tableau/DAX statement.

Hi, @jona4k 

You can refer to this demo.

Try to divide the measure into multiple measures similar to the following:

 

Total Amount = CALCULATE(SUM('Table'[Amount]),ALLEXCEPT('Table','Table'[Color],'Table'[Country],'Table'[Type]))

Rows = COUNTROWS(SUMMARIZE('Table','Table'[Color],'Table'[Country],'Table'[Type]))

measure = 'Table'[Total Amount]/[Rows]

 

The result will be similar to the following:

1.png

If it doesn't meet your requirement ,please explain it more.

Sharing some sample data and expected result in excel will be helpful  to   solve your problem.

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


 

 

 

 

Even though I've tried these different approaches I still wont get the right results

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.