cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
gabrielvigo Regular Visitor
Regular Visitor

Inside, into date Interval

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.

001.png002.png

 

But it does not work in kpi.

 

00a.png00b.png

Can you help me calculate it in the KPI?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Inside, into date Interval

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))

Capture.PNG

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
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

3 REPLIES 3
Community Support Team
Community Support Team

Re: Inside, into date Interval

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

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

Re: Inside, into date Interval

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.

 

Checks.pbix

Community Support Team
Community Support Team

Re: Inside, into date Interval

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))

Capture.PNG

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
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

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 448 members 3,889 guests
Please welcome our newest community members: