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
AndreySBKN
Frequent Visitor

Total for a period

Hi all,

 

I have a simple table: Brand, Month, Volume.

 

I want to add total for a period I select on the slicer. For example, if I select Apr, Aug, Dec, I want to see in 'Total volume' column 2026 (sum for those 3 months) in every row. Is it possible to create a measure to solve this? Thanks

 

AndreySBKN_1-1637531986692.png

AndreySBKN_2-1637532157388.png

 

 

 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @AndreySBKN,

Perhaps you can use allselected functions on your formula to expand the current row content to the current table, then they can calculate and show the total level result at each row.

The definitive guide to ALLSELECTED - SQLBI
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

5 REPLIES 5
v-shex-msft
Community Support
Community Support

Hi @AndreySBKN,

Perhaps you can use allselected functions on your formula to expand the current row content to the current table, then they can calculate and show the total level result at each row.

The definitive guide to ALLSELECTED - SQLBI
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
smpa01
Super User
Super User

@AndreySBKN  can you provide a sample pbix?

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
VahidDM
Super User
Super User

Hi @AndreySBKN 

 

You need to use calendar table (date table) then use the month from that table in your slicer.

 

Create a Calendar Table = Creating Calendar Table with 3 Steps 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

Thanks,

I've changed it to date format. But how can I calculate measure 'Total volume' with 1186 (total of 2 month) in every row (not total for a month) and calculate % of that total ( for 1st row 456/1186, 2nd 397/1186 etc and total should be 1).

 

AndreySBKN_0-1637595058243.png

 

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.

Top Solution Authors