cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
abbas_uddin
Helper I
Helper I

Multiple Totals on Columns Seperated by other columns

Dear Experts,

 

i really need help on achieving the below screenshot in Power Bi. basically i need to have few columns by Area then its Daily total, then monthly sales by Area and its Total and then YTD total. how can i achieve this. please see below snapshot in excel:

 

image.png

 

im beginner in Power bi. if this can be achieved that would be brilliant

 

Regards,

Abbas

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

Hi @abbas_uddin 

Create calculated columns

year = YEAR([date])

month = FORMAT([date],"mmm-yy")

day = FORMAT([date],"dd-mmm-yy")

Add them to the columns fieldof a matrix visual,

Then rename "total" under "Subtotal" option,

Capture1.JPGCapture2.JPG

For more details, please refer to my pbix.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
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

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @abbas_uddin 

Create calculated columns

year = YEAR([date])

month = FORMAT([date],"mmm-yy")

day = FORMAT([date],"dd-mmm-yy")

Add them to the columns fieldof a matrix visual,

Then rename "total" under "Subtotal" option,

Capture1.JPGCapture2.JPG

For more details, please refer to my pbix.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-juanli-msftThanks for your reply and can be solved for the scenario where dates are available, however how can we achieve this if we have pre calculated measures imported from query like CY Sales or LY Sales meaning the data doesnt contain any dates. so in that case where total of CY Sales by area and after the CY Total, there is LY Sales by Area and Tota (Total is not mandatory thing, treating the CY and LY as header is what i want to achieve)

What Power Bi is doing for my case is that it is showing CY Sales and LY Sales for area 1 and so on. It is treating Area as header and below that there is CY and LY. however i want header to be CY and below there should be areas.

 

Since CY and LY is a value measure i cant put them on columns to treat as header. Please see below snapshot for the requirement:

 

image.png

 

let me know if this also can be achieved. Thanks alot for the support

 

Regards,

Abbas

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors