cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Udt_KV
Post Partisan
Post Partisan

selectedValue months sum

Hi Team,

 

I want to sum the visible month's in the Overall column.

screen.PNG

 

Thanks,

KV's

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

Hi, @Udt_KV 

According to your description, I guess you want to make the Overall column display the total percentage of the selected month, you can follow my steps:

  1. Go to power query editor, click on the month columns and select unpivot columns, then change column names, like this:

v-robertq-msft_0-1606118418365.png

 

v-robertq-msft_1-1606118418370.png

 

  1. Apply and close the power query editor, then change the format of column [Percentage]:

1.png

  1. Create a Slicer and place [Month], then create a Matrix and place columns like this, then change the name of total column, like this:

2.png

3.png

And you can get what you want.

You can download my test pbix file here

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Udt_KV
Post Partisan
Post Partisan

It's working, thank you so much 😀

v-robertq-msft
Community Support
Community Support

Hi, @Udt_KV 

According to your description, I guess you want to make the Overall column display the total percentage of the selected month, you can follow my steps:

  1. Go to power query editor, click on the month columns and select unpivot columns, then change column names, like this:

v-robertq-msft_0-1606118418365.png

 

v-robertq-msft_1-1606118418370.png

 

  1. Apply and close the power query editor, then change the format of column [Percentage]:

1.png

  1. Create a Slicer and place [Month], then create a Matrix and place columns like this, then change the name of total column, like this:

2.png

3.png

And you can get what you want.

You can download my test pbix file here

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Udt_KV , Not very clear.

Try like

calculate([measure], all(Table[month]))

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.