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.
Hi, I am having issued with my formula not summing up at the Total and Subtotal level. I would like to show me the sum in the subtototals and totals instead of Zeros (Because it is doing it linear)
Solved! Go to Solution.
Hi @Anonymous ,
According to your description, I create a sample.
RR23 and Average RR23 are all measures.
RR23 = MAX('Table'[Sales])
Average RR 23 = MAX('Table'[Cost])
Here's my solution, create a measure.
Measure =
SUMX (
ADDCOLUMNS (
'Table',
"Diff",
IF ( [RR23] > [Average RR 23], [RR23] - [Average RR 23], 0 )
),
[Diff]
)
Get the correct result.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
According to your description, I create a sample.
RR23 and Average RR23 are all measures.
RR23 = MAX('Table'[Sales])
Average RR 23 = MAX('Table'[Cost])
Here's my solution, create a measure.
Measure =
SUMX (
ADDCOLUMNS (
'Table',
"Diff",
IF ( [RR23] > [Average RR 23], [RR23] - [Average RR 23], 0 )
),
[Diff]
)
Get the correct result.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
pls try this
opportunity 2= IF ( ISFILTER (category), Opportunity, 0)
Proud to be a Super User!
Hi,
it is not working. I am using the following formula but it does not seems to be calculating correcly.
what I essentially need is for the opportunity column to be = Return amount - Return $@ avg... but it is not doing it.
could you pls provide the sample data and expected output?
Proud to be a Super User!
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 |
---|---|
69 | |
60 | |
51 | |
36 | |
36 |
User | Count |
---|---|
84 | |
70 | |
58 | |
45 | |
44 |