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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Sachi08
New Member

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

4 REPLIES 4
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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