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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.