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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
newgirl
Post Patron
Post Patron

Calculating for MAX also shows for other months in matrix

Hello! I'm working on this report wherein the set-up of the data source is that it gets the files from a SharePoint folder. Each file represents each month and each file shows the value input per day.

 

File for JanuaryFile for JanuaryFile for FebruaryFile for February

 

I use 'SharePoint Folder' as the data source and then unpivot the seleced columns to have only 1 column for the input values.

In my report, below are the 2 tables involved (calendar and main table).

packh3.JPG

 

And in my report page, there's a filter for the YearMonth. The measure I made to get the Nominal Capacity per month is 

EquipNominalCap = CALCULATE(MAX(fSolidPackhouse[Value]),fSolidPackhouse[Source]="Equipment Nominal Capacity",'CR tbl_SellingDays'[YearMonth])

but when I place it in my matrix table, it shows correctnly the value per month but it also shows even the nominal capacity for February even though the filter is only for January 2022.

packh4.JPG

 

How could I fix the measure for the Nominal Capacity so that it would only show the value for the filtered YearMonth?

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@newgirl,

 

Try removing the third argument in CALCULATE:

 

EquipNominalCap =
CALCULATE (
    MAX ( fSolidPackhouse[Value] ),
    fSolidPackhouse[Source] = "Equipment Nominal Capacity"
)

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
DataInsights
Super User
Super User

@newgirl,

 

Try removing the third argument in CALCULATE:

 

EquipNominalCap =
CALCULATE (
    MAX ( fSolidPackhouse[Value] ),
    fSolidPackhouse[Source] = "Equipment Nominal Capacity"
)

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks @DataInsights ! Forgot to try removing the last part. I thought it was important. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors