Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
we have a dax code that runs to calculate revenue variance when we look at the sub total
the dax code is re running the equation rather than summing the values with in that catagory
CY_QTY | PY_QTY | CY_REV | PY_REV | CYavgREV | PYavgREV | REV-var | |
SuB Total A+B+C | 150 | 425 | £ 65,000 | £ 180,000 | £ 433 | £ 424 | £ 1,471 |
Product A | 100 | 350 | £ 25,000 | £ 75,000 | £ 250 | £ 214 | £ 3,571 |
Product B | 0 | 50 | £ - | £ 60,000 | £ - | £ 1,200 | £ - |
Product C | 50 | 25 | £ 40,000 | £ 45,000 | £ 800 | £ 1,800 | -£ 50,000 |
CY_Qty PY_Qty and CY_REV and PY_REV are calulated from summarised data table.
CY_avgRev and PY_avgREV are measures that calculate Rev/Qty
REV Var is a measure of sumx (( CY_avgREV - PY_avgREV) * CY_Qty)
We have looked through other forums and couldn't find other people with a similar issue and we have looked through the settings for sub totals and none of the changes work!
Thanks
Solved! Go to Solution.
Hi @Gareth_Hunt ,
Please use SUMX function to have a try.
Measure = SUMX(your_table,the_measure_need_to_be_summed)
Hi @Gareth_Hunt ,
Please use SUMX function to have a try.
Measure = SUMX(your_table,the_measure_need_to_be_summed)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
64 | |
63 | |
52 | |
36 | |
36 |
User | Count |
---|---|
81 | |
71 | |
58 | |
45 | |
44 |