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

Filter by all rows of a project

Hello everyone,

 

An illustration of my tables: Yellow and orange are link by the "Project_ID"

Aikeno_0-1707144805691.png

 

My goal is to create a table in my report (the blue one) with a column "Test scheduled"=Yes, if all the activites have a "Test start" fullfilled.

In this case Project 1 in my blue table will be No in "Test scheduled" because A-003 which is link to P-001 has no "Test start" even if the A-001 have a fullfilled one.

 

Actually I have two line for Project 1:

One with "Test scheduled" yes and another one with no.

 

Thanks in advance for your help ! 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Aikeno ,

Please try the following methods and check if they can solve your problem:

1.Create the Table Orange status.

vjiewumsft_0-1708478758454.png

2.Create the new measure.

 

MeasureTestscheduledStatus = 
var _yproject = SELECTEDVALUE('YTable'[Project_ID])
var _count = CALCULATE(COUNT('Table Orange status'[Project_ID]), FILTER(ALLSELECTED('Table Orange status'),'Table Orange status'[Project_ID]=_yproject))
var _status = SELECTEDVALUE('Table Orange status'[Activity_status])
var _tscount = CALCULATE(COUNT('Table Orange status'[Project_ID]), FILTER(ALLSELECTED('Table Orange status'),'Table Orange status'[Project_ID] = _yproject&&'Table Orange status'[Activity_status] IN {"Planning","Active"} && NOT(ISBLANK('Table Orange status'[Test start]))))

return if(ISBLANK(_count),BLANK(),if(_count = _tscount ,"Yes","No"))

 

3.Drag the measure into the table visual.

vjiewumsft_1-1708478796866.png

4.The result is shown below.

vjiewumsft_2-1708478804878.png

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Aikeno ,

If I understand correctly, the issue is that you want to filter by all rows of a project. Please try the following methods and check if they can solve your problem:

1.Create the simple YTable and OranTable. 

vjiewumsft_0-1707357359279.png

vjiewumsft_1-1707357371116.png

2.Manage relationship between Ytable and OranTable by the Project_ID.

 

3.Create the new measure to filter. Enter the following DAX formula.

Test scheduled = var _yproject=SELECTEDVALUE('YTable'[Project_ID])
var _count=CALCULATE(COUNT('OranTable'[Project_ID]), FILTER(ALLSELECTED('OranTable'),'OranTable'[Project_ID]=_yproject))
var _tscount=CALCULATE(COUNT('OranTable'[Project_ID]), FILTER(ALLSELECTED('OranTable'),'OranTable'[Project_ID]=_yproject&&NOT(ISBLANK('OranTable'[Test start]))))
return if(ISBLANK(_count),BLANK(),if(_count=_tscount,"Yes","No"))

 

4.Drag the Test scheduled to the Ytable visual.

vjiewumsft_2-1707357414511.png

5.The result is shown below.

vjiewumsft_3-1707357423292.png

 

Best Regards,

Wisdom Wu

 

 

Thanks a lot it works fine !

 

Just a little problem when a Project have no associated activities I can't see it in my table, would it be possible ?

 

And to be perfect I have another request, if in my orange table I had a column with activity state would I be able to display "Yes" for "Test scheduled" only for some of them ?

Draft/proposed would be "No"

Planning/Active/Report/Review/Closed would be "Ok"

 

Exemple:

Aikeno_0-1707388191595.png

 

it would be really helpfull it something like this could work.

 

Thanks a lot in advance for your time and help !

Anonymous
Not applicable

Hi @Aikeno ,

Please try the following methods and check if they can solve your problem:

1.Create the Table Orange status.

vjiewumsft_0-1708478758454.png

2.Create the new measure.

 

MeasureTestscheduledStatus = 
var _yproject = SELECTEDVALUE('YTable'[Project_ID])
var _count = CALCULATE(COUNT('Table Orange status'[Project_ID]), FILTER(ALLSELECTED('Table Orange status'),'Table Orange status'[Project_ID]=_yproject))
var _status = SELECTEDVALUE('Table Orange status'[Activity_status])
var _tscount = CALCULATE(COUNT('Table Orange status'[Project_ID]), FILTER(ALLSELECTED('Table Orange status'),'Table Orange status'[Project_ID] = _yproject&&'Table Orange status'[Activity_status] IN {"Planning","Active"} && NOT(ISBLANK('Table Orange status'[Test start]))))

return if(ISBLANK(_count),BLANK(),if(_count = _tscount ,"Yes","No"))

 

3.Drag the measure into the table visual.

vjiewumsft_1-1708478796866.png

4.The result is shown below.

vjiewumsft_2-1708478804878.png

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@Aikeno , Create a measure like

 

Test Scheduled=

var _1 = Max(Filter(Table, not(Isblank(Table[Test Date])))

return

if(_1 <=today(), "No", "Yes")

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

Hello,

 

Thank you for your help but im not able to replicate it.

Aikeno_0-1707207416091.png

 

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.