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.
Hello, I'm facing an issue where the counter is always at 0 when i'm looking at the daily report.
for example this is the measure:
Solved! Go to Solution.
It seems like you’re having trouble with a DAX measure in Power BI. The measure you’ve provided should count the distinct OrderIDs for the current day at station 30. If it’s returning 0, here are a few things to check:
If all the above are correct, try debugging by breaking down the measure and checking each part individually. For example, you can create a measure to check if NIMI_CALENDAR[# IsCurrentDay] is working as expected:
# Test_CurrentDay = CALCULATE( COUNTROWS(NIMI_CALENDAR), NIMI_CALENDAR[# IsCurrentDay] = 1 )
This will give you the count of rows in NIMI_CALENDAR where # IsCurrentDay is 1. If this returns 0, then the issue might be with the NIMI_CALENDAR[date] = TODAY() part of your # IsCurrentDay measure.
Remember to check the data type of the date column in NIMI_CALENDAR and ensure it’s a date type without a time component, as TODAY() returns only the date part. If the issue persists, please provide more details about your data model and the context in which you’re using the measure.
It seems like you’re having trouble with a DAX measure in Power BI. The measure you’ve provided should count the distinct OrderIDs for the current day at station 30. If it’s returning 0, here are a few things to check:
If all the above are correct, try debugging by breaking down the measure and checking each part individually. For example, you can create a measure to check if NIMI_CALENDAR[# IsCurrentDay] is working as expected:
# Test_CurrentDay = CALCULATE( COUNTROWS(NIMI_CALENDAR), NIMI_CALENDAR[# IsCurrentDay] = 1 )
This will give you the count of rows in NIMI_CALENDAR where # IsCurrentDay is 1. If this returns 0, then the issue might be with the NIMI_CALENDAR[date] = TODAY() part of your # IsCurrentDay measure.
Remember to check the data type of the date column in NIMI_CALENDAR and ensure it’s a date type without a time component, as TODAY() returns only the date part. If the issue persists, please provide more details about your data model and the context in which you’re using the measure.
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 |
---|---|
38 | |
26 | |
20 | |
15 | |
8 |
User | Count |
---|---|
69 | |
47 | |
46 | |
20 | |
16 |