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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jcastr02
Post Prodigy
Post Prodigy

Grouping by Distinct Date and Interval

I am trying to group and get a count  of how many intervals a store had.  Example, below there were 6 unique dates with the interval 22:00.  I'm having some difficulty with grouping? or perhaps there is an easier solution?

11/6/2023: 22:00
11/7/2023: 22:00
11/9/2023: 22:00

11/10/2023: 22:00

11/13/2023: 22:00

11/14/2023: 22:00

 

Screenshot 2024-01-29 162327.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @jcastr02

Thanks for your reply, I think it's feasible to implement your request in Power Query.

1. In the Power Query interface, select the Merged column, right-click, and select Remove Duplicates.

vyilongmsft_0-1706603877074.png

 

2. Select the Interval column and click Group By.

vyilongmsft_0-1706604132900.png

vyilongmsft_2-1706604037076.png

 

3. This will give you the result you want.

vyilongmsft_3-1706604037077.png

 

 

 

How to Get Your Question Answered Quickly 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi, @jcastr02

Based on the information you have provided, Here are my answers to your questions.

You can optionally complete the merging of these two columns in Power Query and concatenate them with ":".

vyilongmsft_0-1706580974841.png

vyilongmsft_1-1706580974844.png

This way you can see the style you need on Visualization.

vyilongmsft_2-1706581015790.png

 

 

How to Get Your Question Answered Quickly 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@Anonymous Thank you - I had tried this as well, but I'm trying to get a count somehow within Power Query that would then show   that the 22:00 interval total unique count is 6.  Is there a way to achieve this?

Anonymous
Not applicable

Hi, @jcastr02

Thanks for your reply, I think it's feasible to implement your request in Power Query.

1. In the Power Query interface, select the Merged column, right-click, and select Remove Duplicates.

vyilongmsft_0-1706603877074.png

 

2. Select the Interval column and click Group By.

vyilongmsft_0-1706604132900.png

vyilongmsft_2-1706604037076.png

 

3. This will give you the result you want.

vyilongmsft_3-1706604037077.png

 

 

 

How to Get Your Question Answered Quickly 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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