Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
HI
I have one problem with dax.
How can I multiply two cells from different table
For example I want to get A*B. it work, but for total is not correct. I want to see sum 50 + 1400
Solved! Go to Solution.
Hi @madji,
Maybe you can try this formula.
Measure1 = IF ( HASONEFILTER ( Table1[Column1] ) || HASONEFILTER ( Table2[Column1] ), SUM ( Table1[A] ) * SUM ( Table2[B] ), SUMX ( SUMMARIZE ( 'Table1', 'Table1'[Column1], 'Table1'[A], 'Table2'[B], "product", 'Table1'[A] * 'Table2'[B] ), [product] ) )
Best Regards,
Dale
See this post:
https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
https://yadi.sk/d/OwlJzzG33QPaZV
Link to my examle.
And I think total is not correct. I want to see sum 50 + 1400
Hi @madji,
Maybe you can try this formula.
Measure1 = IF ( HASONEFILTER ( Table1[Column1] ) || HASONEFILTER ( Table2[Column1] ), SUM ( Table1[A] ) * SUM ( Table2[B] ), SUMX ( SUMMARIZE ( 'Table1', 'Table1'[Column1], 'Table1'[A], 'Table2'[B], "product", 'Table1'[A] * 'Table2'[B] ), [product] ) )
Best Regards,
Dale
Thanks a lot 😃
It is really amazing)
Hi @madji,
You are welcome. I just realized it could be simpler in your scenario. Please try this one.
Measure3 = sumx( SUMMARIZE('Table1', 'Table1'[Column1], 'Table1'[A], 'Table2'[B], "product", 'Table1'[A] * 'Table2'[B]), [product])
Best Regards,
Dale
User | Count |
---|---|
77 | |
77 | |
68 | |
67 | |
49 |
User | Count |
---|---|
108 | |
105 | |
93 | |
83 | |
64 |