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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
vengadesh_p
Helper I
Helper I

Need to show total charge based on year, quarter, monthly view

Hi all,

I have data like the image below

vengadesh_p_1-1745471726088.png

 

I want to show Charges based on year, Quarter, & Month view 

Expected Result


Year View

vengadesh_p_2-1745471959954.png

 

Quarter View

vengadesh_p_3-1745472140537.png

Same as monthly view, want to show 


Data

IDStart DateEnd DateNo Month ActiveCharge Per Month
ID_11 January 20231 January 20252410
ID_215 February 202315 February 20263620
ID_320 May 202320 May 20252430
ID_420 May 202320 May 20241210
1 ACCEPTED SOLUTION
kushanNa
Super User
Super User

hi @vengadesh_p 

 

Let's say YourData is your table,

 

Create a Calculated table

 

ChargesByMonth1 = 
ADDCOLUMNS (
    GENERATE (
        YourData,
        VAR StartDate = DATE(YEAR([Start Date]), MONTH([Start Date]), 1)
        VAR MonthsCount = [No Month Active]
        RETURN
            ADDCOLUMNS (
                GENERATESERIES ( 0, MonthsCount - 1, 1 ),
                "MonthDate", EDATE(StartDate, [Value]),
                "Charge", [Charge Per Month]
            )
    ),
    "Year", YEAR([MonthDate]),
    "Quarter", "Q" & FORMAT(QUARTER([MonthDate]), "0"),
    "YearQuarter", FORMAT([MonthDate], "YYYY") & " Q" & QUARTER([MonthDate])
)

 

use it in a matrix table

 

kushanNa_0-1745475984087.png

 

View solution in original post

2 REPLIES 2
v-sgandrathi
Community Support
Community Support

Hi @vengadesh_p ,

 

Thankyou  @kushanNa for your reply on the issue.

Has your issue been resolved? If the response provided by the community member addressed your concern, kindly confirm.

Marking it as Accept Answer and give us Kudos if you found it helpful allows us to ensure that the solutions shared are valuable for the entire community.

 

If you have any further questions, feel free to reach out!
Thank you for your cooperation!

kushanNa
Super User
Super User

hi @vengadesh_p 

 

Let's say YourData is your table,

 

Create a Calculated table

 

ChargesByMonth1 = 
ADDCOLUMNS (
    GENERATE (
        YourData,
        VAR StartDate = DATE(YEAR([Start Date]), MONTH([Start Date]), 1)
        VAR MonthsCount = [No Month Active]
        RETURN
            ADDCOLUMNS (
                GENERATESERIES ( 0, MonthsCount - 1, 1 ),
                "MonthDate", EDATE(StartDate, [Value]),
                "Charge", [Charge Per Month]
            )
    ),
    "Year", YEAR([MonthDate]),
    "Quarter", "Q" & FORMAT(QUARTER([MonthDate]), "0"),
    "YearQuarter", FORMAT([MonthDate], "YYYY") & " Q" & QUARTER([MonthDate])
)

 

use it in a matrix table

 

kushanNa_0-1745475984087.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.