Forum Discussion
KPI Card visual showing wrong value when 'Select All' is used
- 1 year ago
Hi patrickbrooks13 ,
Thank you for raising this issue in the community.
I have reproduced your scenario in Power BI Desktop and I’m happy to confirm that I was able to achieve the expected KPI card visual output when “Select All” is used in both Month and FinancialYear slicers.
What I did:
- Created a KPI visual for Secured Revenue and another for Potential Revenue
- Built custom DAX measures using ALLSELECTED() to ensure totals across all selected months and years
- Connected both visuals to a proper DateTable
- Enabled “Select All” in the slicers
Result:
- Total Secured Revenue: 11,800
- Total Potential Revenue: 13,300
(as expected, summing all selected months and years)
To help you further, I’m attaching the .pbix file used for testing this scenario.
Feel free to download it and adapt it to your data model.If this information is helpful, please “Accept as solution” and give a "kudos" to assist other community members in resolving similar issues more efficiently.
Thank you.
Hi patrickbrooks13
Can you please provide what DAX you are writing to get your result?
If you are not using the below dax, please try it once.
Total Secured Revenue:=
CALCULATE(
SUM('RevenueTable'[SecuredRevenue]),
ALLSELECTED('Date'[Month], 'Date'[FinancialYear])
)
If this answers your questions, kindly accept it as a solution and give a kudos
Hi, this is here. I have a target value in as well so it will go green if met and red if not met etc.