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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

RANK Based on Date within a Group using a DAX measure

Good evening,

 

I have tried several things for ranking based on Date within group since there is a very large number of posts covering this issue.

Most answers though suggest the creation of a calulated column. Nevertheless, I am able to create measures only since the data source I am connecting to is a Tabular Analysis Services model, so I am not allowed to create a calculated column in Power BI.

Also, I have to create it in PowerBI since its calculation is dependent on slicer's selected value.

The business question is "Give me the latest available for each group during the period that is selected through the slicer".

 

EDIT:

 

Initial Data

IDGROUPCODECREATEDDATE
11050A6/10/2020
11056B6/10/2020
11026B6/10/2020
10481A30/7/2020
10469A27/7/2020
11023C6/10/2020
10601C3/9/2020
10142C30/6/2020

 

 

DESIRED OUTPUT

IDGROUPCODECREATEDDATERank
11050A6/10/20203
11056B6/10/20201
11026B6/10/20201
10481A30/7/20202
10469A27/7/20201
11023C6/10/20203
10601C3/9/20202
10142C30/6/20201

 

Is there any solution to my problem?

 

Thank you in advance.

2 REPLIES 2
DataInsights
Super User
Super User

@Anonymous, would you be able to provide sample data and a screenshot of the desired output?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

I have provided the requested details inside my initial post.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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