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
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show episode 9

The Power BI Community Show

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

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors