Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi all!
In Power BI, this scatter chart shows all the facilities with their revisions. For example, a facility might have revision 2 and 3, but I only want to show the latest one, which is revision 3. So, I need to display only the latest revision for each facility. How can I do that?
Thanks
Hi @Fern_21 ,
Thanks for reaching out to the Microsoft fabric community forum.
Thanks for your prompt response
I’ve implemented the logic to display only the latest revision per facility in the scatter plot using a sample dataset in Power BI. I’ve also attached the PBIX file for your reference feel free to review it.
If you're still encountering any issues or need further assistance, please don’t hesitate to reach out. We’ll be happy to help you further.
Best Regards,
Lakshmi Narayana.
Hi @Fern_21 ,
I wanted to check if you had the opportunity to review the information provided , Please feel free to contact us if you have any further questions. If my response has addressed your query, please "Accept as Solution" so other members can easily find it.
Looking forward to your response.
Best Regards,
Lakshmi Narayana
Thanks @Nasif_Azam , for the clear and detailed explanation. Your solution covers both the calculated table and calculated column approaches very well.
I’d like to add that if your dataset updates frequently or you’re working with a large model, using the calculated table method is often more efficient for visuals like scatter charts, as it keeps the data model clean and optimized for performance.
If you need to retain all revisions for other visuals but only want the latest revision in this specific scatter chart, you can use the filtered table only in that chart and keep your main table unchanged for other analysis.
Let us know if you run into any issues while applying these steps or if you need help with a specific DAX formula for your table structure.
Great question and great answer!
Hey @Fern_21 ,
To display only the latest revision per facility in a Power BI scatter chart like the one in your screenshot, you need to filter your dataset so that for each facility, only the row with the latest revision is included.
You need:
Facility (or similar unique identifier)
Revision (should be a numeric or datetime indicating version)
Data columns like Total Volume and Total Gross Dry Weight
In Power BI, go to Modeling > New Table, and enter:
LatestRevisions = VAR LatestRevisionPerFacility = ADDCOLUMNS( SUMMARIZE('YourTable', 'YourTable'[Facility]), "MaxRevision", CALCULATE(MAX('YourTable'[Revision])) ) RETURN SELECTCOLUMNS( NATURALINNERJOIN('YourTable', LatestRevisionPerFacility), "Facility", 'YourTable'[Facility], "Revision", 'YourTable'[Revision], "TotalVolume", 'YourTable'[Total Volume], "TotalWeight", 'YourTable'[Total Gross Dry Weight] -- Add more columns as needed )
In your scatter chart:
Axis: Use Total Volume (from LatestRevisions)
Values: Use Total Gross Dry Weight (from LatestRevisions)
Details or Legend: Use Facility
Add a column to tag the latest revision:
IsLatestRevision = VAR CurrentFacility = 'YourTable'[Facility] VAR CurrentRevision = 'YourTable'[Revision] VAR MaxRevision = CALCULATE( MAX('YourTable'[Revision]), ALLEXCEPT('YourTable', 'YourTable'[Facility]) ) RETURN IF(CurrentRevision = MaxRevision, 1, 0)
Your scatter chart will now include only the most recent revision per facility, giving you a clean, meaningful comparison like the one shown.
If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.
Best Regards,
Nasif Azam
User | Count |
---|---|
84 | |
78 | |
70 | |
47 | |
41 |
User | Count |
---|---|
108 | |
53 | |
50 | |
40 | |
40 |