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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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]))

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]))

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.