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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
luisfc
New Member

Listing distinct values on a filtered table

[edited for clarity]

 

I have been trying to achieve this for the last 3+ weeks. Youtube and forums have been searched through and throuhg and I haven't found an answer.

The single table I have contains Tasks, Status [Backlog|Done|Ongoing], Resolved date, associate Project and associated Program.

Programs can have 1:multiple projects and projects can have 1:multiple tasks. This is a reflection of our team's Kanban project methodology.

 

My intention is to list Programs that have tasks resolved within a given time frame, the count of other tasks that link to the same program, for each status: Done | Backlog | Ongoing.

Using a date slicer does not work as the Resolved date is empty for Status=Backlog & Ongoing, so I am using a measure and an aux Date table to filter tasks:

 

Initiative touched in the period =
var _from = FIRSTDATE('Date'[Date])
var _to = LASTDATE('Date'[Date])
return
if (SELECTEDVALUE('test data'[Resolved]) >= _from && SELECTEDVALUE('test data'[Resolved]) <= _to, 1, 0)
 

Results can then be captured in this visual table:

 

2024-02-28 07_14_48-Window.jpg

Now as I want to display the distinct Programs, I remove the other columns, keeping the filter:2024-02-28 07_16_44-Window.jpg

This is not the result I need. It clealry misses the other rows: CIS-201, CIS-203, CIS-206,...

 

Thank you in advance for your time on this!

See attached pbix here

 

 

1 REPLY 1
amitchandak
Super User
Super User

@luisfc , You need to count the project have all tasks finished on time ? Assume you have measures for the resolve time and standard time (or use static value)

Try measures like

 

 

On Time Task = countx(Values(Table[Task]),if([resolve time] <=[Std Time], [Task], blank() ) )

 

 

Total Task = countrows(Values(Table[Task]))


On Time projects = countx(Values(Table[Project]),if([On Time Task] =[Total Task], [Project], blank()))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.