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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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