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

Im trying to convert an LOD expression for INCLUDE into a DAX expression.

Hello All

 

Im trying to convert an LOD expression from Tableau and want to replicate the same in PowerBI.

 

Please help me out:

 

Tableau - 

{INCLUDE [Commodity],[Country]:AVG([% Weight])}

 

PowerBI Expression that i tried (it doesnt work) - 

 

Average per Commodity =
AVERAGEX(
    KEEPFILTERS(VALUES('Input'[Commodity])),
    CALCULATE(AVERAGE('Input'[% Weight]))
)
3 REPLIES 3
v-deddai1-msft
Community Support
Community Support

Hi @Diva20 ,

 

Did the reply above  resolve your issue? Please consider Accept it as the solution to help the other members find it more quickly. If not, would you please inform us more detailed information( your data and expected output (by OneDrive for Business)) if possible? Then we will help you more correctly.

 

Please do mask sensitive data before uploading.

 

Thanks for your understanding and support.

 

Best Regards,

Dedmon Dai

 

amitchandak
Super User
Super User

@Diva20 , Try a measure like

averageX(summarize(table, Table[Commodity], Table[Country], "_1", [% Weight]),[_1])

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
Ashish_Mathur
Super User
Super User

Hi,

Share some data, explain the business context and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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