Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
Applicable88
Impactful Individual
Impactful Individual

Grouped distinct count included in measure without making separate grouped table

Hello,

 

I have following count used before:

distictCountValueId = DISTINCTCOUNT('Table1'[ValueID])
Now I just found out that ValueID isn't a distinct key. So I just want to group it additional to one more addtional dimension which is a time "ValueOrderTime", which results in a distinct combination.
 
I used Qlik before. Something which is like that:
count( distinct ValueID) only needs be wraped in a  grouping function like aggr() to allow me to add one more grouping condition:
 
count(aggr(count(distinct ValueID), ValueOrderTime))
 
Is there something equivalent to that in PowerBi without the use of a calculated table?
 
Thanks in advance.
 
Best.
 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Applicable88 , Try a measure like

countrows(summarize(Table, Table[ValueID], Table[ValueOrderTime]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Applicable88
Impactful Individual
Impactful Individual

@amitchandak as always, big thank you!

amitchandak
Super User
Super User

@Applicable88 , Try a measure like

countrows(summarize(Table, Table[ValueID], Table[ValueOrderTime]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors