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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
gregormc
New Member

Visualise the increase/decrease of a value based on non consecutive dates

I am looking for some assistance.  I have been tasked with adding whether the balance has increased or decreased from the previous period per column i.e. as of the 29/10/23 has the sum of the balances 'less than £250' increased or decreased in relation to period 15/10/23 and so on.  Any assistance would be greatly appreciated as I am struggling.  Thanks 

 

gregormc_0-1700674841540.png

 

2 REPLIES 2
amitchandak
Super User
Super User

@gregormc ,

One way is have table with distinct such date and join back and create rank in that table

 

date rank = rankx(Dates, Dates[Date],,asc,dense)

 

This Date= CALCULATE(sum('Table'[Qty]), FILTER(ALL('Dates'),'Dates'[Date Rank]=max('Dates'[Date Rank])))
Last Date= CALCULATE(sum('Table'[Qty]), FILTER(ALL('Dates'),'Dates'[Date Rank]=max('Dates'[Date Rank])-1))

 

 

with a date table having all dates you can use a measure like

 

Last Sales = CALCULATE(lastnonblankvalues('Date'[Date],  SUM(Sales[Sales Amount])) ,filter(all('Date'),'Date'[date] <max('Date'[date])))

 

Day Intelligence - Last day, last non continous day
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c324...

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

Thank you for your update.

 

I have managed to obtain the current and previous period figures against each period.  I've run in to a further issue when trying to categorise the summed balance by the arrears band (shown below) as it's pulling the full figure in to each column.  Any ideas? TIA

 

gregormc_0-1700743406141.png

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.

Top Solution Authors