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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors