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.
Hi,
I'm trying to make a measure that counts the times a value is present before today.
This is what i got so far:
MO_T_STATUS_BeforeToday = Calculate(Countrows(AQZ_SAMP_VIEW);AQZ_SAMP_VIEW[MO_Status]="T")<TODAY()
The problem is that the measure returns "true" instead of the times the status has occurred.
Icturion
Solved! Go to Solution.
Try writing something like this
MO_T_STATUS_BeforeToday = CALCULATE ( COUNTROWS ( AQZ_SAMP_VIEW ), FILTER ( AQZ_SAMP_VIEW, AQZ_SAMP_VIEW[MO_Status] = "T" && AQZ_SAMP_VIEW[Date Column] < TODAY () ) )
Note that I have referenced a dummy date column which I am expecting that you'll have in your data
Thanks
Try writing something like this
MO_T_STATUS_BeforeToday = CALCULATE ( COUNTROWS ( AQZ_SAMP_VIEW ), FILTER ( AQZ_SAMP_VIEW, AQZ_SAMP_VIEW[MO_Status] = "T" && AQZ_SAMP_VIEW[Date Column] < TODAY () ) )
Note that I have referenced a dummy date column which I am expecting that you'll have in your data
Thanks
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 |
---|---|
112 | |
99 | |
73 | |
72 | |
49 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |