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
mohdk52
New Member

Replicating current month column's data to future month

Hi team,

 

I am working on a project where there are sales value for Jan and Feb 2022.

I have to add the data from Mar'22 to Dec'22 - considering the numbers from FEB'22 and multiplying them by 1.5.

Kindly let me know how to achieve this?

 

Many thanks in advance.

1 ACCEPTED SOLUTION

Hi @mohdk52 ,

According to your description, here's my solution.

1.Create a new month table, don't make relationship with the fact table.

vkalyjmsft_0-1648455623431.png

2.In Power Query, add an index column.

vkalyjmsft_2-1648456064858.png

vkalyjmsft_3-1648456102672.png

3.Create a measure.

 

Sales Measure =
VAR _Sales =
    MAXX (
        FILTER (
            ALL ( 'Table' ),
            'Table'[Month] = MAX ( 'Month'[Month] )
                && 'Table'[Region] = MAX ( 'Table'[Region] )
        ),
        'Table'[Sales]
    )
VAR _Last =
    MAXX (
        FILTER (
            ALL ( 'Table' ),
            'Table'[Index]
                = MAXX (
                    FILTER (
                        ALL ( 'Table' ),
                        NOT ISBLANK ( 'Table'[Sales] )
                            && 'Table'[Region] = MAX ( 'Table'[Region] )
                    ),
                    'Table'[Index]
                )
        ),
        'Table'[Sales]
    )
VAR _Diff =
    MAXX (
        FILTER (
            ALL ( 'Table' ),
            'Table'[Month] = MAX ( 'Month'[Month] )
                && 'Table'[Region] = MAX ( 'Table'[Region] )
        ),
        'Table'[Index]
    )
        - MAXX (
            FILTER (
                ALL ( 'Table' ),
                NOT ISBLANK ( 'Table'[Sales] )
                    && 'Table'[Region] = MAX ( 'Table'[Region] )
            ),
            'Table'[Index]
        )
RETURN
    IF ( NOT ISBLANK ( _Sales ), _Sales, _Last * POWER ( 1.5, _Diff ) )

 

Put the new month column, the measure and Region in the matrix, get the correct result.

vkalyjmsft_1-1648455723037.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@mohdk52 , Try a measure like

calculate(lastnonblankvalue('Date'[Month Year], [meausre]), filter(all('Date'), 'Date'[Date] >= eomonth(today(),-1) && 'Date'[Date] <= max('Date'[Date])))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks @amitchandak But unfortunately it doesnt seem to be working.

Apologies If i didnt give the proper example before but in below example table.

Jan and Feb are actuals. And my dataset has data only for these 2 months.

Mar numbers are derived from Feb*1.5.

Apr numbers are derived from Mar*1.5.

I need to have this into a matrix chart.

 

Month/SalesJANFEBMARAPR
Region12000300045006750
Region23500250037505625

 

Hi @mohdk52 ,

According to your description, here's my solution.

1.Create a new month table, don't make relationship with the fact table.

vkalyjmsft_0-1648455623431.png

2.In Power Query, add an index column.

vkalyjmsft_2-1648456064858.png

vkalyjmsft_3-1648456102672.png

3.Create a measure.

 

Sales Measure =
VAR _Sales =
    MAXX (
        FILTER (
            ALL ( 'Table' ),
            'Table'[Month] = MAX ( 'Month'[Month] )
                && 'Table'[Region] = MAX ( 'Table'[Region] )
        ),
        'Table'[Sales]
    )
VAR _Last =
    MAXX (
        FILTER (
            ALL ( 'Table' ),
            'Table'[Index]
                = MAXX (
                    FILTER (
                        ALL ( 'Table' ),
                        NOT ISBLANK ( 'Table'[Sales] )
                            && 'Table'[Region] = MAX ( 'Table'[Region] )
                    ),
                    'Table'[Index]
                )
        ),
        'Table'[Sales]
    )
VAR _Diff =
    MAXX (
        FILTER (
            ALL ( 'Table' ),
            'Table'[Month] = MAX ( 'Month'[Month] )
                && 'Table'[Region] = MAX ( 'Table'[Region] )
        ),
        'Table'[Index]
    )
        - MAXX (
            FILTER (
                ALL ( 'Table' ),
                NOT ISBLANK ( 'Table'[Sales] )
                    && 'Table'[Region] = MAX ( 'Table'[Region] )
            ),
            'Table'[Index]
        )
RETURN
    IF ( NOT ISBLANK ( _Sales ), _Sales, _Last * POWER ( 1.5, _Diff ) )

 

Put the new month column, the measure and Region in the matrix, get the correct result.

vkalyjmsft_1-1648455723037.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

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.