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

Dax Measures and columns

I am migrating the Tableau dashboards to power bi dashboards and getting confusions inorder to covert the Tableau LOD expressions equivalent to power BI.

 

I have one tableau function which is given below; can anyone please tell appropriate DAX formula in power BI?

 

Run rate as per invoice: {Include [Sales_No]:Sum((IFNULL(IIF(([Invoice])=0,1,([Invoice]))/{ Exclude [Product name],[product_name],[product_id],[City_id],[Grouping],[PRODUCTS_ID],[Sales Associate],[String Value of Revenue Date],[Old SBU],[City],A_ID : Sum(IIF(([Invoice])=0,1,([Invoice])))},1)))}

4 REPLIES 4
Anonymous
Not applicable

Sales_Amount: { Include [Sales_No],[PRODUCTS_ID]: (Sum({Fixed [Sales_No]: Avg([Datbase_Sales_Amount])}) * Sum([Run Rate as per Invoice])) }

 

Run Rate as per Invoice: Data Range from [1 to 7]

 

 

 

 

 

 

Screenshot (6).png

 

 

@Anonymous , Try one of the two

 

calculate(divide(Average(Table[Database_sales]), count(Table[Database_sales])), allexcept(Table, Table[Sales_No]))

 

or

 

calculate(divide(Average(Table[Database_sales]), count(Table[Database_sales])), filter(allselected(Table, Table[Sales_No] =max(Table[Sales_No]))))

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

Okay,

Is this formula that I have use for Sale Amount or Run rate as per Invoice. Or please give equivalent DAX formulas for below tableau functions.

 Sale Amount: {Include [Sales No], [PRODUCTS_ID]: (Sum ({Fixed [Sales No]: Avg([Datbase_Sales_Amount])}) * Sum ([Run Rate as per Invoice]))}

Run rate as per invoice: {Include [Sales No]:Sum((IFNULL(IIF(([Invoice])=0,1,([Invoice]))/{ Exclude [Product name],[product_name],[product_id],[City_id],[Grouping],[PRODUCTS_ID],[Sales Associate],[String Value of Revenue Date],[Old SBU],[City],A_ID : Sum(IIF(([Invoice])=0,1,([Invoice])))},1)))}

amitchandak
Super User
Super User

@Anonymous , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.