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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
blitwak
Frequent Visitor

KPI visualization showing current week values with the ability of change of week

Hi,

I want to know if it possible to have a KPI that shows current week value when I open report but when changing week, update their value.

 

When we open our report take a look just for current iteration but when clicking in another week, update this value from that week.

I know that we can achieve this with edit interactions but I want that when I open my report, show just the value from current week, not sum of all weeks.

 

For instance:

Now, we are on iteration 2019w08 and we are selling umbreallas and our goal is 500 umbreallas per week.

 

Week and #

2019w06 - 321

2019w07 -  121

2019w08 -  711

 

Use case:

When open report, show 711 with goal 500

When clicking 2019w07, show 121 with goal 500

 

Current value:

When open report, show 711 + 121 + 321 with goal 500 + 500 +500

 

Thanks

1 ACCEPTED SOLUTION
um_mir
Frequent Visitor

Hi @blitwak 

 

I hope below one of the solutions works for you.

 

Solution 1 : Create a measure like this

CurrentWeek1 = LASTNONBLANK(Umbrealla[Sold],SUM(Umbrealla[Sold]))
Solution 2: Create a index based on the Week number and then create a measure like this
CurrentWeek2 = 
VAR CurrentWeekIndex = MAX(Umbrealla[Index])
RETURN 
CALCULATE(SUM(Umbrealla[Sold]),Umbrealla[Index]= CurrentWeekIndex)
Both of the above solution return the same results. See below screen capture.
 
Capture1.PNGCapture2.PNGCapture3.PNG
 
 
Did I answer your question? Mark my post as a solution!
 
Regards

View solution in original post

1 REPLY 1
um_mir
Frequent Visitor

Hi @blitwak 

 

I hope below one of the solutions works for you.

 

Solution 1 : Create a measure like this

CurrentWeek1 = LASTNONBLANK(Umbrealla[Sold],SUM(Umbrealla[Sold]))
Solution 2: Create a index based on the Week number and then create a measure like this
CurrentWeek2 = 
VAR CurrentWeekIndex = MAX(Umbrealla[Index])
RETURN 
CALCULATE(SUM(Umbrealla[Sold]),Umbrealla[Index]= CurrentWeekIndex)
Both of the above solution return the same results. See below screen capture.
 
Capture1.PNGCapture2.PNGCapture3.PNG
 
 
Did I answer your question? Mark my post as a solution!
 
Regards

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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