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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
RAKESH1986
Helper II
Helper II

How to display current and previous value in dashboard

Hi All,

 

I want to display the current and previous week's values as a value selection 

whenever the user selects any week in the slicer it should display that selection value plus the previous value.

 

RAKESH1986_0-1672295945422.png

 

this value OF PW02 should come in the above the previous week whenever the user selects PW03.

RAKESH1986_1-1672295971095.png

 

These are my value in these three columns...

 

RAKESH1986_2-1672296056212.png

 

good to have both the previous and current week in the one table...in my example, I added current and previous in two different table because I do not know how to add them in the same table and display

 

this is my table having above used three column  

RAKESH1986_3-1672296207400.png

 

pls, tell me the simplest way to do this, I am very new to powerbi

 

 

 

2 REPLIES 2
RAKESH1986
Helper II
Helper II

@amitchandak  Thanks for response, its too comlicated for me to udnerstand, i am very new to power bi and i am not a developer. if you do not mind can u take my column name as example and show me how to do it?

 

thanks

rakesh

amitchandak
Super User
Super User

@RAKESH1986 , You need a week rank column in separate week or date table

 

Week Rank = RANKX(all('Date'),'Date'[Week Start date],,ASC,Dense)
OR
Week Rank = RANKX(all('Date'),'Date'[Year Week],,ASC,Dense) //YYYYWW format

 

 

These measures can help
This Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))
Last Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))

 

Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

 

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
https://www.youtube.com/watch?v=pnAesWxYgJ8

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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