cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Shubham_Yadav
Helper I
Helper I

sum the total of data labels dynamically

Hi, is there any way that i sum the total of data labels dynamically

Shubham_Yadav_0-1654162267843.png

Here is my DummyPbix->DummyPbix 

Any help will be thankfull.

 

1 ACCEPTED SOLUTION

Hi @Shubham_Yadav 

 

You can try this measure. I used your [Start_Date_Measure] in it. 

Total sum = 
var _date2 = [Start_Date_Measure]+30
return
CALCULATE(SUM(Date_range[value]),ALLSELECTED(Date_range[Date]),Date_range[Date]<_date2)

vjingzhang_0-1654682030808.png

 

Removing ALLSELECTED() part is also OK if you only want to display it in a card visual. 

vjingzhang_1-1654682268221.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

3 REPLIES 3
FarhanAhmed
Super User
Super User

Can you please explain a bit more and share some sample data to understand the problem in detail.







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Hi @FarhanAhmed , I want sum of values which you see above each bars, it should be dynamic such that when date filter changes ites value then all summation should also be done dynamically

Shubham_Yadav_0-1654163611156.png

 

Hi @Shubham_Yadav 

 

You can try this measure. I used your [Start_Date_Measure] in it. 

Total sum = 
var _date2 = [Start_Date_Measure]+30
return
CALCULATE(SUM(Date_range[value]),ALLSELECTED(Date_range[Date]),Date_range[Date]<_date2)

vjingzhang_0-1654682030808.png

 

Removing ALLSELECTED() part is also OK if you only want to display it in a card visual. 

vjingzhang_1-1654682268221.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors