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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Sax
Helper I
Helper I

Breakdown by quarter

Hi community,

I got a simple model with a fact table, a dimension table and a calendar

Sax_0-1686849339716.png

 

I'd like to achieve the breakdown by quarter within each year like in the table below:

Sax_1-1686849529688.png

How do you calculate the Measure on column 3?

Many thanks

 

Sax

1 ACCEPTED SOLUTION
Sax
Helper I
Helper I

I figured this out - the right measure to use is 

 

QuarterBreakdown =
VAR YearSales =
    SUMX (
        VALUES ( 'Calendar'[Year] ),
        CALCULATE ( [1. Total Sales], ALLSELECTED ( 'Calendar' ) )
    )
RETURN
    DIVIDE ( [1. Total Sales], YearSales )

View solution in original post

3 REPLIES 3
Sax
Helper I
Helper I

I figured this out - the right measure to use is 

 

QuarterBreakdown =
VAR YearSales =
    SUMX (
        VALUES ( 'Calendar'[Year] ),
        CALCULATE ( [1. Total Sales], ALLSELECTED ( 'Calendar' ) )
    )
RETURN
    DIVIDE ( [1. Total Sales], YearSales )

Sax
Helper I
Helper I

@Syk  show the value for each year repeated. Exactly how it is showed on the table. The idea is to use that column to calculate the breakdown within each year, also exactly how it is displayed on the table.

Syk
Super User
Super User

What do you want the measure in column 3 to show or do? 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.