Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello everyone,
I added a slicer and a KPI card in the Power BI. When I choose Select all in the slicer, the value displayed in the KPI card is the value of the last item in the slicer, but not the sum value of all the slicer items in the Slicer.
The attached is the pbix file. And the Slicer and KPI card mentioned are on the first report.
When I choose "Select all" in the "TTM Periods" slicer, the value dislayed in the KPI card above only displays the value of the "TTM-4", but not the total value of the 5 TTMs.
This happenes to the slicer of "Tier 1 New, Tier 2.... " and the corresponding KPI card of "Sales by Product Categories"
When I choose "Select all" in the slicer of "Tier 1 New, Tier 2...." , the the KPI card above only displays the value of the last slicer item ,that is "X Product", but not the total value of all the slicer items.
Can any one help resolve this problem?
Thank you very much!
Solved! Go to Solution.
Hi @EthanChenJichao ,
The KPI visual object in Power BI is intended to reflect performance against a target over a specific period or condition. When no specific filters are applied, it defaults to displaying the most recent period of data (in your case, the most recent year) as the metric. This is because KPIs are often used to monitor current performance against a goal which usually involves the most recent data available.
On the other hand, card visual aggregate data from all available data points unless otherwise filtered. This means that in the absence of any slicers affecting these visuals, they will show the sum of all years.
You can use the card visual in this case as it will show the correct sum.
Additionally, you can try using Running total measure-
Running sum= calculate([Sales],filter(all('Product category'[Invoice Date ]),'Product category'[Invoice Date ]<=max(('Product category'[Invoice Date ]))))
Note- Make the Invoice date in Date format from power query editor otherwise it will take it as text value.
Hope this helps!
Hi @EthanChenJichao
I was not able to access the file but seems like you need to check the data type of the filed you are pulling in the KPI.
If its a number, it will calculate the sum and show it you based on the slicer you select. But if its a text field it might show the first/last occurence.
Hope this helps!
Thanks
@Moana Hi, I think you can access and edit the pbix file now. Thanks for your help.
@Moana Hi, thanks for your sugggesition. I checked the data type, it is decimal number, not text. So the reason might not be the data type. Can you tell me a way to upload the pbix file in this forum? Thanks!!
Can you please share your PBI file?
Hi @EthanChenJichao ,
The KPI visual object in Power BI is intended to reflect performance against a target over a specific period or condition. When no specific filters are applied, it defaults to displaying the most recent period of data (in your case, the most recent year) as the metric. This is because KPIs are often used to monitor current performance against a goal which usually involves the most recent data available.
On the other hand, card visual aggregate data from all available data points unless otherwise filtered. This means that in the absence of any slicers affecting these visuals, they will show the sum of all years.
You can use the card visual in this case as it will show the correct sum.
Additionally, you can try using Running total measure-
Running sum= calculate([Sales],filter(all('Product category'[Invoice Date ]),'Product category'[Invoice Date ]<=max(('Product category'[Invoice Date ]))))
Note- Make the Invoice date in Date format from power query editor otherwise it will take it as text value.
Hope this helps!
@Moana Hi, thanks for your explanation. I also found out that the Card visual is more suitable than KPI Card visual.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
71 | |
70 | |
38 | |
28 | |
26 |
User | Count |
---|---|
98 | |
96 | |
59 | |
44 | |
40 |