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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
zblm
Frequent Visitor

Dynamic Groupings

Hi all,

 

 

Im hoping someone can help me. I have a pie chart that displays counts of claims by days of the week. Most of the data falls between Monday to Friday, with only a small amount of data falling on Saturday and Sunday. The issue i am having is that as the data for Saturday and sunday is so small that the label for sunday will not appear on the chart. See below

 

Day data.JPG

 

 

Unfortunatley the Saturday and Sunday wont always be so low, so im looking for a way to group Saturday and Sunday if the sum of the two days is under 5%.

 

I have tried manually grouping the days but it throws my sort off.

 

Any help is greatly appreciated.

1 ACCEPTED SOLUTION
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @zblm,

You add a measure in the value level of the pie chart, right? If it is, you can create try to create another measure using the formula below and replace it to original measure to check if it works fine.

newmeasure =
IF (
    Table[Date] = "Saturday"
        && Table[Date] = "Sunday"
        && [your_measure] <= 0.05,
    CALCULATE ( [your_measure], FILTER ( Table, Table[Date] = "Saturday" ) )
        + CALCULATE ( [your_measure], FILTER ( Table, Table[Date] = "Sunday" ) ),
    [your_measure]
)


Please respond me if you have any problem.

Best Regards,
Angelia

View solution in original post

3 REPLIES 3
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @zblm,

You add a measure in the value level of the pie chart, right? If it is, you can create try to create another measure using the formula below and replace it to original measure to check if it works fine.

newmeasure =
IF (
    Table[Date] = "Saturday"
        && Table[Date] = "Sunday"
        && [your_measure] <= 0.05,
    CALCULATE ( [your_measure], FILTER ( Table, Table[Date] = "Saturday" ) )
        + CALCULATE ( [your_measure], FILTER ( Table, Table[Date] = "Sunday" ) ),
    [your_measure]
)


Please respond me if you have any problem.

Best Regards,
Angelia

Hi Angelina,

 

Unfortunatley i couldnt get thta measure to work. I couldnt figure out how to refernce "Table[Date] = "Saturday"", etc.  seeing as for me its usually just Staurday or Sunday that cause the issue, I created a new grouping and sorted it accordingly.

 

Thanks very much for the reply.

Hi @zblm,

Based on my understanding, there is a column in your resource table including "Monday", "Tuesday", "Wednesday", "Thursday", "Friday",""Saturday" and "Sunday", so place the column to Table[Date] in my formula. You said you created a new grouping and sorted it accordingly,  welcome to share your solution and mark it as answer, so more people will benefit from here.

Best Regards,
Angelia

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.