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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Sachi08
Regular Visitor

How to show data in below format?

Month

Total

Billed Count

Apr-24May-24Jun-24Jul-24Aug-24Sep-24Oct-24Nov-24Dec-24Jan-25Total paid Count
Apr-24131583179         3179
May-241318820001932        3932
Jun-241236619749681000       3942
Jul-241163519481012422715      4097
Aug-241180020711057447286554     4415
Sep-241177920911145503321219432    4711
Oct-241157921381164554346238168386   4994
Nov-241159921091154532366217169139283  4969
Dec-241153122041231583325248206172102331 5402
Jan-2575697423761631025956483227651670
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Sachi08,

You can create a unconnected date table and use raw table date field as row, new table date as column to design a matrix visual.
After these steps, you can create new measure formula to summary records based on current date:

formula = 
VAR cRowDate =
    MAX ( 'Table'[Date] )
VAR cColumnDate =
    MAX ( NewTable[Date] )
RETURN
    IF (
        cRowDate <= cColumnDate,
        CALCULATE (
            SUM ( 'Table'[Bill] ),
            FILTER ( ALLSELECTED ( 'Table' ), [Date] <= cRowDate && [Date] <= cColumnDate )
        )
    )

2.png
Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Sachi08 ,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hi @Sachi08,

You can create a unconnected date table and use raw table date field as row, new table date as column to design a matrix visual.
After these steps, you can create new measure formula to summary records based on current date:

formula = 
VAR cRowDate =
    MAX ( 'Table'[Date] )
VAR cColumnDate =
    MAX ( NewTable[Date] )
RETURN
    IF (
        cRowDate <= cColumnDate,
        CALCULATE (
            SUM ( 'Table'[Bill] ),
            FILTER ( ALLSELECTED ( 'Table' ), [Date] <= cRowDate && [Date] <= cColumnDate )
        )
    )

2.png
Regards,

Xiaoxin Sheng

danextian
Super User
Super User

Hi @Sachi08 

 

Not very straighforward. This will involve using a disconnected  table containing the column headers. Measures would have been enough if not for that extra column before the months and the custom total column name.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Irwan
Super User
Super User

hello @Sachi08 

 

i am not sure how your data looks like but here i create a simple example to create as your visual above.

1. create a new calculated column which has exact same value as your date column.

Irwan_0-1737264758682.png

2. create a matrix visual and grab the values in matrix

Irwan_1-1737264802961.png

3. dont forget to tick Column Subtotal ON as you want to have a row sum value at the right side of matrix.

 

Hope this will help.

Thank you.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.