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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
msaundersdw
Frequent Visitor

Date query to list all rows prior to a selected date

I have a data set that comprises a few fields shown below; essentially a Business Function Area can be 'scored' at any point in time and that score is simply appended to the list. The score can go up or down and there will be more score fields attributed later.

 

msaundersdw_0-1695153073859.png

I'm trying to formulate a table that will show the latest score, up to and including the selected date.

 

I've tried all sorts of measures around the MAX of the dates but I am only able to return rows that have the same selected date.

 

It's almost there without any fancy DAX: 

msaundersdw_1-1695153476875.png

 

But I can't seem to apply the rule of 'just the last instance of, based on the date'. I added a unique id compromising the formatted date and ID but I can't seem to filter on a MAX of that either.

Any help/pointers would be amazing!

 

 

 

10 REPLIES 10
msaundersdw
Frequent Visitor

But I don't want to transform the data and lose the expectation of being able to drill down into a specific process and see the changes over time.

msaundersdw_1-1700566955151.png

 

Selecting a process that hadn't been changed in the date range here would show as a straight line. Consider this as an example data set - the list has 250 items, so quickly identifying trends (such as those low, unchanging scores) is a requirement.

Please provide sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.

‎11-21-2023 12:27 PM contains the sample source, ‎

11-21-2023 12:29 PM and 1-21-2023 12:30 PM has the sample output.

Consider using a simpler graphical solution. Let users find their own insights.

 

lbendlin_0-1700574047718.png

 

Whilst i see the simplicity (and ease to deliver) a surmised table, the explicit requirement is to be able to

  1. see the data set as at a point in time (so results for dates on and up to a specific date in a single list) and
  2. be able to visualise the date changing over time - ideally via some sort of slider (to quickly highlight trends etc.) ... so being able to do the above at a number of dates/ranges 

 

msaundersdw
Frequent Visitor

msaundersdw_0-1700566196495.png

 

msaundersdw
Frequent Visitor

Below are the tables that would be derived from filtering on date or quarter. Will eventuall show the change in all values - overall score used as an example. The graphs are just for illustration.

 

USER SELECTS 01-Feb-2023  
Business Function AreaProcess DescriptionReview Datez_Overall Score
Business Area 1Process 3601/02/202380%
Business Area 1Process 2101/02/202390%
Business Area 2Process 15701/02/20230%

 

USER SELECTS Q1-2023   
Business Function AreaProcess DescriptionReview Datez_Overall Score 
Business Area 1Process 3601/02/202380% 
Business Area 1Process 2101/02/202390% 
Business Area 2Process 15701/03/202330% 

 

USER SELECTS Q2-2023   
Business Function AreaProcess DescriptionReview Datez_Overall Score 
Business Area 1Process 3601/02/202380% 
Business Area 1Process 2101/02/202390% 
Business Area 2Process 15701/05/202350% 
lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Apologies for the tardy response but I'm back on this now!

 

Here's some data.

 

Source:

Process IDUnique IDBusiness Function AreaProcess DescriptionReview DateStaff aware and trainedTestedFormally AdoptedNot deviated from approvedCorrectly SecuredQuality Rating of OutputQuality Rating of Processz_Overall ScoreAudit Comments
362023020100036Business Area 1Process 3601/02/2023110005580% 
212023020100021Business Area 1Process 2101/02/2023111015590% 
1572023020100157Business Area 2Process 15701/02/202300000000% 
1572023030100157Business Area 2Process 15701/03/2023100000010% 
1572023040100157Business Area 2Process 15701/04/2023110000230% 
1572023050100157Business Area 2Process 15701/05/2023011100450% 

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors