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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
jesslossa
Regular Visitor

Percent evolution Month over Month

Hello!

 

I've received a report to complete and add some visuals, and also creating some more measures. I'm trying to calculate the % evolution through month over month. 

 

The existing graph looks like this, and it's bringing the data correctly:

jesslossa_0-1666289062592.png

 

It uses this measure to complete the lines of the visual:

Rank %MS Brand = 
   IF(SELECTEDVALUE('SDBR StgDeParaMercado'[RB VS CONC]) = "CONC",
    CALCULATE([% Price MS],
    FILTER(ALL('SDBR StgDeParaMercado'[RB VS CONC]),[Rank Brand] <= 5)),
    CALCULATE([% Price MS],
    FILTER(ALL('SDBR StgDeParaMercado'[RB VS CONC]),[Rank Brand] <= 100)))

Which calls...

% Price MS = DIVIDE([Price Market],[Price Brand])
-
Price Market = CALCULATE([Total Price (DDD)], 'SDBR StgDeParaMercado'[RB MARKET] = 'SDBR StgDeParaMercado'[RB MARKET])
- 
Price Brand = CALCULATE([Total Price (DDD)], 'SDBR StgDeParaMercado'[BRAND_DESC] = 'SDBR StgDeParaMercado'[BRAND_DESC])

 

I didn't understand the logic behind equalling the same column inside the calculate function. However, if i remove the equalling of "Price Brand", or if I remove from both Price measures, the graph looks like this:

jesslossa_1-1666289395483.png

 

And I need to replicate the same logic to make another similar graph, only changing the legend. But, even if I keep the calculate function equalling the same column inside the Price measures, in another graph visual on another page, I keep getting the last result, like the above image.

 

Could you guys help me understand the logic behind this? I unfortunately can't contact the person who made the report because they left the company.

 

Thank you very much! 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jesslossa ,

 

About the logic behind equalling the same column inside the calculate function.

vmengzhumsft_0-1666334262827.png

To my understanding, this way of writing does not seem to make sense, usually we need to use "earlier" or "max" or something to indicate the current row.

 

Best regards,

Community Support Team Selina zhu

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

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @jesslossa ,

 

About the logic behind equalling the same column inside the calculate function.

vmengzhumsft_0-1666334262827.png

To my understanding, this way of writing does not seem to make sense, usually we need to use "earlier" or "max" or something to indicate the current row.

 

Best regards,

Community Support Team Selina zhu

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

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.