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 want to count how many items in our inventory aren't used for more then 12 months.
I created a LASTDATE and a DATEDIFF measure to see which items need to be count.
The result is:
Item no LASTDATE DATEDIFF
10.009 10-07-2017 21
10.011 1-11-2017 17
10.035 1-11-2017 17
The result of the new measure i'm looking for should be 3.
Try this MEASURE
Measure= COUNTROWS ( FILTER ( VALUES ( tableName[Itemno] ), [DATEDIFF] > 12 ) )
It looks like your measure is working. But, when i place the measure in a KPI-visual it doens't show the total quantity. Any idea?
Hi @Oomsen
Do you mean it works in Card visual but not in KPI visual?
Yes
try this revision
Measure = COUNTROWS ( FILTER ( ALLSELECTED ( tableName[Itemno] ), [DATEDIFF] > 12 ) )
Still same result.
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 |
---|---|
110 | |
97 | |
78 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |