Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello community!
I have a dates of check in and check out. And depending of the date filter, I need a KPI with a count of people inside.
I use a measure that is good to table, but not to KPI.
Measure: IF(MIN(EnSitio[FechaIngreso]) <= MIN(SelectorFecha[FiltroFecha]) && MIN(EnSitio[FechaSalida]) > MIN(SelectorFecha[FiltroFecha]) ;1;0)
I add the filter "1" to the table.
But it does not work in kpi.
Can you help me calculate it in the KPI?
Solved! Go to Solution.
Hi @gabrielvigo,
As the Card dispalys only one value which has been aggregated always, we are not able to add a filter condition based on this aggregate value ("Average of Values").
So for your scenario, you could create a measure with the formula below to achive your desired output.
Measure = CALCULATE(COUNT(Checks[Key]),FILTER('Checks',[Med_FilterDate]=1))
Best Regards,
Cherry
Hi @gabrielvigo,
Do you use the measure as the visual level filter in KPI visual?
In addition, how do you create the KPI visual?
If it is convenient, could you share a dummy pbix file which can reproduce the scenario and your desired output, so that we can help further investigate on it? You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.)
Best Regards,
Cherry
Hi!
Yes, I share my report.
I have check in and check out, with a filter per day.
The filter can use with table, but noy in a KPI.
Hi @gabrielvigo,
As the Card dispalys only one value which has been aggregated always, we are not able to add a filter condition based on this aggregate value ("Average of Values").
So for your scenario, you could create a measure with the formula below to achive your desired output.
Measure = CALCULATE(COUNT(Checks[Key]),FILTER('Checks',[Med_FilterDate]=1))
Best Regards,
Cherry
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
61 | |
56 | |
55 | |
36 | |
34 |
User | Count |
---|---|
77 | |
73 | |
45 | |
45 | |
43 |