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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Deferred Revenue - Using Colum Headers in a filter

Hi all,

 

New to PowerBi so I'm hoping someone can help here. I have a table of products that include an amount, contract length and amount paid. I want to build a deferred and current month released revenue schedule per account. Products start at different times in the year for each account. Here is an example dataset. 

 

CNewman85_0-1673536363958.png

 

The type of visualisation I want to see is below. My idea was to have a table in PowerBi with the month-year as the colum header and try to filter on it but there might be a better way of doing it. 

 

CNewman85_1-1673536909936.png

 

Thanks in advance

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

I suggest you to create an unrelated Calendar table first ,then create a measure and show your result in a matrix.

Calendar =
ADDCOLUMNS (
    CALENDARAUTO (),
    "YearMonth",
        YEAR ( [Date] ) * 100
            + MONTH ( [Date] ),
    "YearMonthName", FORMAT ( [Date], "MMM-YYYY" ),
    "MonthStart", EOMONTH ( [Date], -1 ) + 1
)

Measure:

Measure
    =
    VAR _GENERATE =
        GENERATE (
            VALUES ( 'Table'[Account] ),
            SUMMARIZE ( 'Calendar', 'Calendar'[YearMonthName], 'Calendar'[MonthStart] )
        )
    VAR _ADDSUM =
        ADDCOLUMNS (
            _GENERATE,
            "Sum",
                SUMX (
                    FILTER (
                        'Table',
                        'Table'[Account] = EARLIER ( [Account] )
                            && 'Table'[Start] <= EARLIER ( [MonthStart] )
                            && 'Table'[End] > EARLIER ( [MonthStart] )
                    ),
                    'Table'[Monthly]
                )
        )
    RETURN
        SUMX ( _ADDSUM, [Sum] )

Result is as below.

RicoZhou_0-1673589188609.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Anonymous
Not applicable

Thanks RicoZhou, almost there, only issue I can't seem to fix is the YearMonthName is being displayed Month and year by by Month. Rather than Jan- Dec

 

CNewman85_0-1673864076150.png

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors