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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Community Champion
Community Champion

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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