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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Lexignot
Frequent Visitor

Donut and clustered bar charts aggregate data based on a date range selected in date slicers

Hello,

 

In the attached dashboard (link) I'd like to have my donut and clustered bar charts to display the total of IDs by type of Media for a given Period selected: the charts should update dynamically when I change the Periods or select a custom date range. At the moment, the charts display the number of IDs (i.e. count of IDs) per day, they do not aggregate the number of IDs by type of Media (see below illustrations).

 

Do you know how I can achieve this?

 

Thanks in advance for your help!

Donut chart:

Current result for the Last 7 days

Lexignot_0-1717511261023.png

 

Expected result:

Lexignot_1-1717511410585.png

 

 

Clustered bar chart:

Current result for the Last 7 days

Lexignot_2-1717511548132.png

 

Expected result:

Lexignot_3-1717511712462.png

 

1 ACCEPTED SOLUTION
Lexignot
Frequent Visitor

Hi @K0da thnak you for your message. Yes, I removed the Date in the legend and used a relative date slicer so that I only have one slicer. This way, I can get the relative date ranges I need, and the charts update properly.

 

Thanks!

View solution in original post

2 REPLIES 2
Lexignot
Frequent Visitor

Hi @K0da thnak you for your message. Yes, I removed the Date in the legend and used a relative date slicer so that I only have one slicer. This way, I can get the relative date ranges I need, and the charts update properly.

 

Thanks!

K0da
New Member

Hi,

 

from what i've seen, just remove the "date" variable from the visual

Captura de tela 2024-06-04 145549.png

They should aggregate now, and be filtered by the date period selected on the slicer, l also noticed the "Date" slicer is being filtered by "Period_Selection" this is limiting the dates that can be selected, but maybe it's supposed to be like that.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors