Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hey guys 🙂
I insert the following Measure in Power BI Desktop:
Latest_NPS = CALCULATE(COUNTA(NPS[nps_category]);DATESBETWEEN(NPS[ts];[LastestDate_NPS_Start];[LatestDate_NPS_End]))
It retunrs: Nothing
If I insert this measure:
Latest_NPS = CALCULATE(COUNTA(NPS[nps_category]);DATESBETWEEN(NPS[ts];[LastestDate_NPS_Start];[LastestDate_NPS_Start]))
It retunrs: 1
Why I am not able to COUNTA the NPS[nps_category] for a specific timeline?
Thanks in advance,
Simon
Solved! Go to Solution.
Hi @SimonAbs,
You can try to use below formula to calculate records between specific date range:
Latest_NPS = VAR currStart = MAX ( NPS[LastestDate_NPS_Start] ) VAR currEnd = MAX ( NPS[LatestDate_NPS_End] ) RETURN CALCULATE ( COUNTA ( NPS[nps_category] ); FILTER ( ALLSELECTED ( NPS ); NPS[ts] IN CALENDAR ( currStart; currEnd ) ) )
Regards,
Xiaoxin Sheng
Hi @SimonAbs,
You can try to use below formula to calculate records between specific date range:
Latest_NPS = VAR currStart = MAX ( NPS[LastestDate_NPS_Start] ) VAR currEnd = MAX ( NPS[LatestDate_NPS_End] ) RETURN CALCULATE ( COUNTA ( NPS[nps_category] ); FILTER ( ALLSELECTED ( NPS ); NPS[ts] IN CALENDAR ( currStart; currEnd ) ) )
Regards,
Xiaoxin Sheng
User | Count |
---|---|
79 | |
74 | |
62 | |
61 | |
45 |
User | Count |
---|---|
108 | |
100 | |
91 | |
83 | |
61 |