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 guys,
i want to count the number of values i have in a table:
What i want is this:
ATM i have this measure but it does not work:
Anybody any ideas?
Appreciate!!
Thx
Solved! Go to Solution.
Perhaps:
Measure =
VAR __SKU = MAX('Table'[SKU])
RETURN
COUNTROWS(FILTER(ALL('Table'),[SKU] = __SKU))
@Anonymous
@Anonymous , You need to all except in the measure
count = calculate(Table[Column1], allexcept(Table,allexcept(Table,Table[SKU]))
https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/
In case you need a new column
countx(filter(Table,table[SKU]=earlier(Table[SKU])),Table[Column1])
Hi @Anonymous ,
Measure = CALCULATE (COUNT ('Table' [SKU])))
and make sure valus are not Summarized.
Regards,
Harsh Nathani
Perhaps:
Measure =
VAR __SKU = MAX('Table'[SKU])
RETURN
COUNTROWS(FILTER(ALL('Table'),[SKU] = __SKU))
@Anonymous
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 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |