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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
eugenm
Helper II
Helper II

Pivot table and grouping by # of distinct date values

Hi folks,

 

My source data has long format and date format date values and a column called ID.
Here's a mock of the short format Date column and the ID column.

DateID
May 110
May 2

10

May 311
May 412
May 511
May 612
May 710

 

Desired output:

Count of IDCount of Date
13
22

 

I would like to do this in the visual, as I am working with a ton of data. Additional processing in the original data or adding calculcated columns, etc is not a great idea. But if that's the last resort, I may consider it.

 

How can I solve the challenge above? It seems to be a good place for a pivot table, maybe?

 

Thanks in advance.

1 ACCEPTED SOLUTION
eugenm
Helper II
Helper II

I will switch this to another type of example, in a new post.
Maybe that will have better luck.

Consider this thread closed. Thanks

 

View solution in original post

4 REPLIES 4
eugenm
Helper II
Helper II

I will switch this to another type of example, in a new post.
Maybe that will have better luck.

Consider this thread closed. Thanks

 

eugenm
Helper II
Helper II

So, is there no solution for doing this?

Sergii24
Super User
Super User

Hi @eugenm, could you elaborate a bit more on the desired output?

Count of ID
1
2


How would you achive this? If I look at yout sample, there are 7 IDs (3 unique: 10, 11 and 12) so I can't understand where this 1 and 2 comes from?

Sure. 
One ID (#10) occurs 3x.
Two ID's occur twice - they are #11 and #12.
Total= 7 unique ID's indeed.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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