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
gcv1999
Helper I
Helper I

Display most recent N items by completion duration

Hello everyone,

 

I have two tables below, one stores the completion data for a taskId and the other keeps track of each individual goal of a taskId.

I'd like to display the most recent N (goal) items for each level, and the time it took to complete each taskId. However, the cumulative total number of items for the 3 bar charts should add up to 14, which is the total goal. As you can see, the cumulative total right now for the 3 bar charts is 16, because there have been 16 completions, but it should only be 12 since taskId 7380 has no completions and a goal of 2.

 

Basically, I want to find the most recent N items, where N is the goal for each respective taskId, then display them all in three separate charts based on level and time to complete.

 

Levels.pnglevels2.png

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @gcv1999 ,

Could you please provide the calculation logic which get the calculative value 14? I created the below measure to get count of completed tasks, but it seems the value is not correct. Is there other condition need to be fulfilled? The goal is used for comparing the value of taskLevel? What's the correct value for every level?

Measure = CALCULATE(COUNT('Tasks'[taskId]),FILTER('Tasks',NOT(ISBLANK('Tasks'[completion])))) +0

Display most recent N items by completion duration.JPG

Best Regards

Rena

Community Support Team _ Rena
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.

Top Solution Authors