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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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