Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi All,
i have a dax to calcualte Retail margin for each month & its able to calculate correctly, however the total of the row is completely different.
Solved! Go to Solution.
@jaswalsarthak , Mutiplication need to done at row level , check if this possible
RM YTD = DIVIDE(SUMX('RM Data','RM Data'[Value]*[Units In Price]),103)
or
Keep this same
RM YTD = DIVIDE([Units In Price]*SUMX('RM Data','RM Data'[Value]),103)
Change to consider Matrix column field
RM YTD Number = SUMX(BValues('BI Sales'[Month Year]), [RM YTD])
Thanks @amitchandak DIVIDE(SUMX('RM Data','RM Data'[Value]*[Units In Price]),103) worked perfectly.
@jaswalsarthak , Mutiplication need to done at row level , check if this possible
RM YTD = DIVIDE(SUMX('RM Data','RM Data'[Value]*[Units In Price]),103)
or
Keep this same
RM YTD = DIVIDE([Units In Price]*SUMX('RM Data','RM Data'[Value]),103)
Change to consider Matrix column field
RM YTD Number = SUMX(BValues('BI Sales'[Month Year]), [RM YTD])
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 42 | |
| 40 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 149 | |
| 105 | |
| 63 | |
| 36 | |
| 36 |