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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Have matrix using year/month rows summarize values as the most recent

I would like my matrix to summarize values as Most Recent as opposed to First/Last/Max

I have a number of Facilities that have monthly reports, part of those reports lists the current operator. I would like to have my Matrix show the most recent operator at each level in the hierarchy:

an example facility:

Jadon_0-1670967503579.png

when I expand to years:

Jadon_1-1670967520053.png

So already, I would expect the overall summarization to be showing Westdrum, not Husky

This is shown again when I expand the years that the switches of ownership occured:

Jadon_2-1670967690061.png

2017 should show Trident, and 2020 should show Westdrum, which is not the case.

 

Something to note is that there isn't only a single entry per facility per month, but there could be 30, although in a given month they should all be the same operator, so it doesn't particularly matter.

 

I would like to find some sort of measure that could get this table to work the way I intend, as I also need a similar set up for a few other matrixes so this would be immensely helpful

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

I am unable to share the full PBI file due to confidential information located in other parts of the dataset. This is really the best I can do.
Here is the 2020 data for the example I showed, with some information removed for safety.

YearMonthOperatorNameReportingFacilityIDReportingFacilityProvinceStateReportingFacilityTypeReportingFacilityIdentifier
2020JanuaryTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020JanuaryTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020JanuaryTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020FebruaryTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020FebruaryTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020FebruaryTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020MarchTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020MarchTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020MarchTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020AprilTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020AprilTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020AprilTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020MayTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020MayTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020MayTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020JuneTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020JuneTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020JuneTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020JulyTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020JulyTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020JulyTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020AugustWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020SeptemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020OctoberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020NovemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020NovemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020NovemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020NovemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020NovemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020DecemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020DecemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020DecemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020DecemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020DecemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020DecemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020DecemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020NovemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020NovemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020DecemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020DecemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020NovemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020NovemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020DecemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020JanuaryTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020FebruaryTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020MarchTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020AprilTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020MayTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020JuneTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020JulyTRIDENT EXPLORATION (ALBERTA) CORP.ABBT0041712ABBT41712
2020AugustWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020SeptemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020OctoberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020NovemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020NovemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020NovemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020DecemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020DecemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712
2020DecemberWESTDRUM ENERGY LTD.ABBT0041712ABBT41712

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hello, I appreciate the help, but I have run into an issue with the solution you provided. I build the columns as you've done, and they all seem to be correct, no errors, but when I put them into my Matrix visual I get an error saying that it "Can't display the visual", here is a picture of the exact message. Any advice on how to solve this?

Jadon_0-1671138827708.png

 

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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