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!
Hello,
I have three measures
Current Premium = (sum(Data[Premium]))
Prior Quarter Paid = (CALCULATE(sum('Data'[Paid]),DATEADD('Data'[Valuation Date], -1, QUARTER))
Prior Quarter Premium = (CALCULATE(sum('Data'[Premium]),DATEADD('Data'[Valuation Date], -1, QUARTER)))
I created a measure such that:
Solved! Go to Solution.
Hi, @mintea ;
I create a simple example to tested it.
Prior Quarter Paid = CALCULATE(sum([ Sales]),DATEADD('financials'[Date], -1, QUARTER))Prior Quarter Premium = (CALCULATE(sum([Gross Sales]),DATEADD('financials'[Date], -1, QUARTER)))Measure = [Prior Quarter Paid]/[Prior Quarter Premium]*SUM([Gross Sales])
The final output is shown below: the total not right.
So we could create another measure.
Measure 2 =
IF(ISINSCOPE('financials'[Year]),[Measure],
SUMX(SUMMARIZE('financials',[Segment],[Country],[Year],"1",[Measure]),[1]))
The final output is shown below:
You can use it as a reference, or provide your simple file if necessary.
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @mintea ;
I create a simple example to tested it.
Prior Quarter Paid = CALCULATE(sum([ Sales]),DATEADD('financials'[Date], -1, QUARTER))Prior Quarter Premium = (CALCULATE(sum([Gross Sales]),DATEADD('financials'[Date], -1, QUARTER)))Measure = [Prior Quarter Paid]/[Prior Quarter Premium]*SUM([Gross Sales])
The final output is shown below: the total not right.
So we could create another measure.
Measure 2 =
IF(ISINSCOPE('financials'[Year]),[Measure],
SUMX(SUMMARIZE('financials',[Segment],[Country],[Year],"1",[Measure]),[1]))
The final output is shown below:
You can use it as a reference, or provide your simple file if necessary.
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @mintea
Check this link, I think it would be helpful and you will find the solution:
https://www.vahiddm.com/post/why-my-measure-returns-the-wrong-total
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
| User | Count |
|---|---|
| 50 | |
| 43 | |
| 36 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 139 | |
| 129 | |
| 61 | |
| 59 | |
| 57 |