cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Route217
Post Prodigy
Post Prodigy

Tricky - measure to add columns in matrix table

Hi Experts

 

See sample file with matrix table. . I want to create a new matrix which has Year_month in the Row and Month in the column as the previous table. BUT the values in Month 0 remain

 

New Month 1 = Month 0 +Month 1 

New Month 2 = Month 0 +Month 1 +Month 2 

 

and so on...

 

https://www.dropbox.com/s/0bdlo5sjw9soi7w/FADSampleData%20%282%29.pbix?dl=0 

1 ACCEPTED SOLUTION
Fowmy
Super User IV
Super User IV

@Route217 

You can add a measure as follows:

Measure = 
var __m =  MAX(Llo_FAD_Data[Month]) return
CALCULATE(
    SUM(Llo_FAD_Data[Result]),
    ALLSELECTED( Llo_FAD_Data[Month] ),
    Llo_FAD_Data[Month] <= __m
)

Fowmy_0-1627162113464.png

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

1 REPLY 1
Fowmy
Super User IV
Super User IV

@Route217 

You can add a measure as follows:

Measure = 
var __m =  MAX(Llo_FAD_Data[Month]) return
CALCULATE(
    SUM(Llo_FAD_Data[Result]),
    ALLSELECTED( Llo_FAD_Data[Month] ),
    Llo_FAD_Data[Month] <= __m
)

Fowmy_0-1627162113464.png

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.