Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.