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
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
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.