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! Request now

Reply
MCALDERON
Frequent Visitor

Calculated column comparison

Hi, I need a little light here... I

have to create a visual that will tell me the top 10 bots that more increased from last month vs the current month. I have all the data needed -> bot name, current month, last month, current run hours, last month run hour. The problem is that I cannot think of a way to filter the top 10 based on the change vs each month and also a way that automatically the visual changes when the month change (ex. if we are in Mach then to the the data January vs February - Not sure if this is possible)  what I am currently ussing is the Tornado 2.1.0 visual to display the data:

MCALDERON_0-1648503770955.png

As you can see is not working as expected because I should see the top 10 that ONLY increases on February vs January.

 

Any idea here?

2 REPLIES 2
MCALDERON
Frequent Visitor

Thanks for your reply!! I did this before and not working as well, is showing months that shouldnt be on the top 10 of more increases

amitchandak
Super User
Super User

@MCALDERON , You can create measure like

last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))

2nd last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-2,MONTH)))

 

diff = [last MTD Sales] - [2nd last MTD Sales]

or

diff % = divide([last MTD Sales] - [2nd last MTD Sales], [2nd last MTD Sales])

 

This you can use in TOPN filter at visual level

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors