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
KevinH10
Frequent Visitor

Project Advance

Hi, I have a report about "Public affairs Management" where you can see the advance of the engagement plan actions for a particular issue. I need to display a visual (I was thinking a line chart) where I can see the evolution of the total completion rate of the issue. I need to display the advance month by month of the total completion rate of the issue. For example, in April the total advance of the issue is x%,  June the total advance of the issue is y%.

To clarify, it works this way, there's an issue and that issue has objectives and for each objective there is an engagement plan that consists of actions. 

 

The table and the expected result is shown in the image below. Basically month by month there is going to be a change in the completion rate of the action. I want to show the total completion rate by issue to the specified date (Month column).Expected result.PNG

 

 

 

 

 

 

 

 

I'm a nooby in the DAX language and with the following measures I get the following results. 

 

Total completion rate = CALCULATE([Sum Completion Rate],
FILTER('Engagement Plan Progress',
'Engagement Plan Progress'[ID Issue]=EARLIER('Engagement Plan Progress'[ID Issue])),

FILTER('Engagement Plan Progress',
EARLIER('Engagement Plan Progress'[Month No])>='Engagement Plan Progress'[Month No]))

Real result.PNG

 

 

 

 

 

 

 

 

The results I get is because it is filtering all the records of an action, and not the most recent of date by action. But I don't know how to translate that into DAX, I've been trying with MAXX but in calculate I get an error. If any ideas on how to do it efficiently will be accepted too.

Thanks in advance for any ideas on how to solve my problem. 

 

Kevin Hernández

1 ACCEPTED SOLUTION

Thanks for the reply, I used a sum of distinct values with a measure of max values and it worked. 

 

Regards,

Kevin Hernández

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@KevinH10,

 

The requirement is not very clear. You may check if RANKX Function helps.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for the reply, I used a sum of distinct values with a measure of max values and it worked. 

 

Regards,

Kevin Hernández

@KevinH10,

 

Glad to hear that. You may help accept the solution above. Your contribution is highly appreciated.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.