cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
harting
Regular Visitor

SUMMARIZECOLUMNS table filter Issue

I would to create a summary table using SUMMARIZECOLUMNS with filter based on selected date of a date slicer.

I created a measure (Selected End Date) for getting the MAX date of selected date range.


Selected End Date = CALCULATE(MAX('Disconnected Date'[Date]), ALLSELECTED('Disconnected Date'[Date]))

 

I seem to be able to get the Selected End Date to display correctly in a tile.  

But the Selected End Date value seems to be incorrect when I am using it in the filter for SUMMARIZECOLUMNS query.

 

harting_0-1621164078154.png

 

My base table is Machine table which has a history log of a machine inspection dates.

I want to create a Machine Summary table to select rows from Machine table which Inspection Dates are included the selected range of Date Slicer.

All tables are not joined.

 

harting_1-1621164100563.png

 

Can someone help to solve the problem of not able to get the correct Selected End Date measure in the formula for creating SUMMARIZECOLUMNS?  

 

Thanks!

 

 

 

1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @harting ,

 

v-lionel-msft_0-1621303231378.png

The ‘Machine Summary’ table is a calculated table, and its values do not change with the slicer dynamically.

v-lionel-msft_1-1621303263014.png

Try to create a measure like this and add it to the table visual.

 

v-lionel-msft_2-1621303507680.png

 

Best regards,
Lionel 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

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @harting ,

 

v-lionel-msft_0-1621303231378.png

The ‘Machine Summary’ table is a calculated table, and its values do not change with the slicer dynamically.

v-lionel-msft_1-1621303263014.png

Try to create a measure like this and add it to the table visual.

 

v-lionel-msft_2-1621303507680.png

 

Best regards,
Lionel Chen

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

Hi Lionel,

Thanks for your help!

 

Harry

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.