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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors