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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
lucianomagalhae
New Member

Sum of values ​​for the next month

I have a table with the following columns

lucianomagalhae_1-1711313362707.png

I need to put a wave matrix visual for each product, the value in the January column will be the value of the first date in February, in February it will be the value of the first date in March. In other words, the value in each month will always be the value of the first date of the following month. How could I do?

lucianomagalhae_2-1711313509048.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @lucianomagalhae 

 

Based on your question, here is my proposed method.


However, since your date column is broken down to days. Therefore the results may be somewhat different from your expectations.

 

Here's some dummy data

 

"Table"

vnuocmsft_0-1711332887255.png

 

Create a measure.

 

Measure = var _month = MONTH(SELECTEDVALUE('Table'[Date]))
RETURN
CALCULATE(MIN('Table'[Value]),
FILTER(
    ALL('Table'), 
    MONTH('Table'[Date]) = _month + 1
    &&
    'Table'[Product] = MAX('Table'[Product])
    
    )
)


Create a matrix.

vnuocmsft_2-1711333207868.png

 

Here is the result.

vnuocmsft_1-1711333025614.png

Regards,

Nono Chen

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

 

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @lucianomagalhae 

 

Based on your question, here is my proposed method.


However, since your date column is broken down to days. Therefore the results may be somewhat different from your expectations.

 

Here's some dummy data

 

"Table"

vnuocmsft_0-1711332887255.png

 

Create a measure.

 

Measure = var _month = MONTH(SELECTEDVALUE('Table'[Date]))
RETURN
CALCULATE(MIN('Table'[Value]),
FILTER(
    ALL('Table'), 
    MONTH('Table'[Date]) = _month + 1
    &&
    'Table'[Product] = MAX('Table'[Product])
    
    )
)


Create a matrix.

vnuocmsft_2-1711333207868.png

 

Here is the result.

vnuocmsft_1-1711333025614.png

Regards,

Nono Chen

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

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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