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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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