Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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)))}
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]
@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]))))
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)))}
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 17 | |
| 10 | |
| 7 | |
| 6 |