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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Missing values when grouping

Hello everone. First post - tell me if i'm doing smth wrong-

 

I am currently working on a quarterly report where I have to group a lot of data (45.000 rows by 85 columns) by date into groups of four month intervals (the period June 1st 2021 10:00:00 AM - October 1st 09:59:59 AM 2021, October 1st 2021 10:00:00 AM - February 2022 09:59:59 AM etc. 

 

I am btw using european time in my data and my formatting but just chose to write the american time format here.

 

The column with the date data is formatted as date/time and looks right. I right click the column and choose New group, select 'List' as group type and then click the first date of the interval, scroll down to the last date of the interval and shift click it to mark all values in between. After doing this to all the data, nothing is left in the list of non-grouped values. However when I then try to create a visualization using the grouped dates it has grouped several thousand values in to a Blank group. 

 

TL;DR My grouping doesnt include all the data in the groups even though it appears to do so. How can I make sure to inclucde all the data? 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

One possible way to do that is to use DAX formulas to create a new column that assigns each date to a specific interval based on your criteria.

To use DAX formulas, you need to:

Select your data and go to Modeling > New Column.
Create two columns:

Date1 = [Date]-10/24

 

Date Interval = SWITCH(TRUE(),

'Table'[Date1] >= DATE(2021,6,1) && 'Table'[Date1] < DATE(2021,10,1), "Jun-Oct 2021",

'Table'[Date1] >= DATE(2021,10,1) && 'Table'[Date1] < DATE(2022,2,1), "Oct-Feb 2022",

......

)

vstephenmsft_0-1693463468003.png

 

 

                                                                                                                                                         

Best Regards,

Stephen Tao

 

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

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

One possible way to do that is to use DAX formulas to create a new column that assigns each date to a specific interval based on your criteria.

To use DAX formulas, you need to:

Select your data and go to Modeling > New Column.
Create two columns:

Date1 = [Date]-10/24

 

Date Interval = SWITCH(TRUE(),

'Table'[Date1] >= DATE(2021,6,1) && 'Table'[Date1] < DATE(2021,10,1), "Jun-Oct 2021",

'Table'[Date1] >= DATE(2021,10,1) && 'Table'[Date1] < DATE(2022,2,1), "Oct-Feb 2022",

......

)

vstephenmsft_0-1693463468003.png

 

 

                                                                                                                                                         

Best Regards,

Stephen Tao

 

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

Anonymous
Not applicable

Thank you Stephen!

This is exactly the solution I ended up going with. It definitely solves the problem.

Doesn't answer the question of why my data isn't being grouped right though, but I'll figure that out another time. 

 

Thanks

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.