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.
I am trying to determine if a Project has associated Actions that are open.
This will be used in filtering the page.
I want to show all of the Projects with no Open Actions. (A Measure cannot be used as a filter for a page)
If it has no open actions I want it to say "No Open Actions"
I added a Column that shows the result that I would like "Newley Created Column in dataset Example"
I thought I could use an IF Statement with a filter, but nothing seems to work
IF(Project Status = "Open" && Action Status = "Open"),
FILTER('Table','Table'[ID] = EARLIER('Table','Table'[ID])
I always get the result for that row and I want the result for that Project. As shown in the example column.
I have also tried:
That does not work at all.
Thank you for your help.
Solved! Go to Solution.
Hi,
Your end result seems inconsistent to me. I do not understand the logic you have used to populate then entries in the "Newley Created Column in dataset Example" column. Anyways, write this calculated column formula in the Issues_sheet table
Column = if(CALCULATE(COUNTROWS(Issues_Sheet),FILTER(Issues_Sheet,Issues_Sheet[Project]=EARLIER(Issues_Sheet[Project])&&Issues_Sheet[Action Status]="Open"))>0,"Open Actions","No open Actions")
If my results are wrong, then restate your question in simple English clearly specifying the conditions.
Hi,
Please show the exact result that you are expecting.
I added a dataset with the Column results that I would like. Thank you.
Hi,
Your end result seems inconsistent to me. I do not understand the logic you have used to populate then entries in the "Newley Created Column in dataset Example" column. Anyways, write this calculated column formula in the Issues_sheet table
Column = if(CALCULATE(COUNTROWS(Issues_Sheet),FILTER(Issues_Sheet,Issues_Sheet[Project]=EARLIER(Issues_Sheet[Project])&&Issues_Sheet[Action Status]="Open"))>0,"Open Actions","No open Actions")
If my results are wrong, then restate your question in simple English clearly specifying the conditions.
Thank you for being able to interpret my difficult to decypher problem. If you were to reword this formula what would you call it? Thanks.
You are welcome. Does my formula show the correct result?
Yes it does.
Hey @Brett007 ,
check the following measure, that will tell you the amount of open tasks by project:
Amount Open Projects =
VAR vProjectTable = ADDCOLUMNS (
VALUES ( MyTable[ID] ),
"@OpenTasks", CALCULATE ( COUNTROWS ( MyTable ), MyTable[ID Status] = "Open" && MyTable[Task Status] = "Open" )
)
RETURN
SUMX(vProjectTable, [@OpenTasks])
Would that work for you?
That gives me a numerical value. How do I use that numerical value of count of open tasks per Project to show in a matrix next to the project name?
Thank you
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |