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.
I have a bunch of restuarant locations that need to be "checked" for regulation by the 15th of each month. Unfortunately, the way our data works is that each day when someone visits the restaurant for daily logging", they are forced to fill out either "inspection taken" or "not checked". As a result, location A might have 14 entries of "not checked" and 1 entry of "inspection taken".
A simple count function won't work as it makes the data appear that we don't check the restuarants often. Here is one of my current measures that counts if the # of times we have inspected an area
Solved! Go to Solution.
Hi,
In the Date slicer (which should be built from the Calendar Table) select 15 July 2021. Try this measure
Measure = if(CALCULATE(COUNT(Restaurant[Status]), Restuarant[Response]="Not Checked",DATESBETWEEN('Calendar[Date],STARTOFMONTH(Calendar[Date]),MAX(Calendar[Date])))=15,"Investigate","Monthly Check Complete")
This measure should work if the only 2 entries that can appear in the Status column are "Not checked" and "Inspection taken"
Hi,
In the Date slicer (which should be built from the Calendar Table) select 15 July 2021. Try this measure
Measure = if(CALCULATE(COUNT(Restaurant[Status]), Restuarant[Response]="Not Checked",DATESBETWEEN('Calendar[Date],STARTOFMONTH(Calendar[Date]),MAX(Calendar[Date])))=15,"Investigate","Monthly Check Complete")
This measure should work if the only 2 entries that can appear in the Status column are "Not checked" and "Inspection taken"
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |