March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi all,
I have a SharePoint list with two columns, Company and Report date. Each company can have a few report dates. Using power bi, how can I show only the maximum date from the list of dates for each company. from below image you can see when I select a company it shows all the available report dates and I only want to show the latest date or have adifferent color.
Hi @Harris021
I did a local test ,you can take a reference
I Create 2 measure ,one is to calculate the maxdate per company,the other one is to calculate the count for the maxdate
Here is my test table
Measure for maxdate: maxdate = CALCULATE(MAX('Table (3)'[date]), ALLEXCEPT('Table (3)','Table (3)'[company]))
Measure for sales :salesformaxdate = CALCULATE(SUM('Table (3)'[sales]),FILTER('Table (3)','Table (3)'[date]=MAX('Table (3)'[date])))
Then in visualization:
When only select company A
Best Regards,
Community Support Team _Isabella
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Harris021 ,
You can create a calculated column to determine whether a date is the max date for a particular item and use this to filter a measure, a visual, a page or the entire report. Example:
Max Date =
CALCULATE ( MAX ( 'Table'[Date] ), ALLEXCEPT ( 'Table', 'Table'[Company] ) ) = 'Table'[Date]
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
73 | |
68 |