Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
beingEniola
Regular Visitor

Measure returning wrong result

Please, I'm working on this data to measure the impact of hosting paralympics on the host countries. But the measure I created to calculate the medals won before and after hosting are not returning correct results. The grand total in both prehosting and posthosting columns add up to the total medal won. While the prehosting is < hostYear the posthosting is > host year. What could be the problem?Screenshot 2024-09-19 150104.png

2 REPLIES 2
Anonymous
Not applicable

Hi @beingEniola ,

 

When I reviewed posts and I found that this post didn't seem to be solved yet.

If possible, please provide some dummy data and expected result, thanks.

It would be better that you provide us with more details about this issue.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

HotChilli
Super User
Super User

I don't fully understand the description, however, the measure is not going to return the number you want because the variable 'totalmedal' is being passed in first. Once a variable is assigned it doesn't change value.

I think you want to use the SUM(......) in the calculate line instead of the variable.

--

That might get you what you want or not (but it will be better than the existing)

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.