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 have a table with pivoted data, shown in the below images. I have created a field "MoveID" to group similar org codes together
My objective is to create a measure that will filter to show records where MoveID has a value of Loaded, or TM queue, but MoveID DOES NOT have a value of anything else. Not Approved, Approved w/ Changes, Exported, Live, Rejected/Cancelled. So in using this measure as a filter, I can see rows where there is no Live, Approved, Exported value at all.
I dont want to just filter them out to not see them. I want to find rows where they don't even exist
Is this even possible?
Solved! Go to Solution.
Hi @Anonymous ,
According to your description, you could create flag measure, then using flag as filter; the following formula to create a measure :
step 1: Add Measure (flag)
flag =
VAR a =
CALCULATE (
COUNTROWS ( 'Table' ),
FILTER (
ALLEXCEPT ( 'Table', 'Table'[Org code] ),
[Status] IN { "loaded", "TM queue" }
)
)
VAR b =
CALCULATE ( COUNTROWS ( 'Table' ), ALLEXCEPT ( 'Table', 'Table'[Org code] ) )
RETURN
IF ( a = b, 1, 0 )
step 2: Add filter
The final output is shown below:
Best Regards,
Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
According to your description, you could create flag measure, then using flag as filter; the following formula to create a measure :
step 1: Add Measure (flag)
flag =
VAR a =
CALCULATE (
COUNTROWS ( 'Table' ),
FILTER (
ALLEXCEPT ( 'Table', 'Table'[Org code] ),
[Status] IN { "loaded", "TM queue" }
)
)
VAR b =
CALCULATE ( COUNTROWS ( 'Table' ), ALLEXCEPT ( 'Table', 'Table'[Org code] ) )
RETURN
IF ( a = b, 1, 0 )
step 2: Add filter
The final output is shown below:
Best Regards,
Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
you can create a column
check = if(ISBLANK(maxx(FILTER('Table','Table'[Org Code]=EARLIER('Table'[Org Code])&&'Table'[Status]<>"Loaded"&&'Table'[Status]<>"TM queue"),'Table'[Status])),"Yes","No")
Proud to be a Super User!
@Anonymous , Try a measure for only those two status and have both of them only
countx(Filter(summarize(Table, Table[MoveID] , "_1", calculate(distinctcount(status), filter(Table, Table[Status] in {"Loaded","TM queue"})), "_2",distinctcount(status)), [_1] =[_2] && [_1] =2), [MoveID])
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 |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |