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
po
Post Prodigy
Post Prodigy

kpi card not adjusting value

Hi,

 

Have the following sales by day and calculate a media of this as

 

median_sales = round(MEDIAN(sales[sales_qty]),0) 

 
Have a slicer where can select the week and the above adjust correctly depdening on week selected.
 
Wish to have a kpi card visual which displays the value for the week selected but alwys shows the trend in background thus have set edit interactions to none when select the slicer.
 
Have tried 
 
sumX( FILTER(calendar,calendar[Week]=VALUES ( calendar[Week] )),<median_sales>)
 
However the value shown in kpi card visual is same regardless of what select in slicer i.e. 
 
How can we best have a kpi card visual where the value adjusts depending on week selected in slicer but the trend still remains vsible.?
 
Thanks
1 ACCEPTED SOLUTION

hi, @po 

What is your expected trend?

The trend is the visual is based on the result of the indicator value.

You could drag indicator and trend axis value in a line chart to test it.

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi, @po 

If calendar table has created the relationship with sales table like below:

2.JPG

and Kpi visual always show data of the latest date.

Also there are two similar post for you refer to:

https://community.powerbi.com/t5/Desktop/visual-KPI-week-previous-week/m-p/644979#M309098

https://community.powerbi.com/t5/Desktop/KPI-card-displays-different-value-to-card-and-table-any-way...

If not your case, please share your sample data and expected output.

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

 

Thanks for update.

 

Not quite what looking for in this scenario.

Looking to select slicer similar to below but want to snure the trend still remains visible when select individual slicer element but the value adjusts coresponding to the week selected - is this possible?

 

SCREENSHOT.JPG

hi, @po 

What is your expected trend?

The trend is the visual is based on the result of the indicator value.

You could drag indicator and trend axis value in a line chart to test it.

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

 

Thanks for reply.

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.

Top Solution Authors