Forum Discussion
Finding Delta
- Anonymous7 years agoMeasure =VAR __ids = SELECTCOLUMNS('Table19',"__id",[ID])VAR __allIds = ALL('Table18'[ID])VAR __otherIds = EXCEPT(__allIds,__ids)RETURN IF(SELECTEDVALUE(Table18[ID], 0) IN (__otherIds), 1, 0)The above measure is working as I wanted it to. by setting a visual filter for a table visual. where Measure IS 1Thank you Greg_Deckler and Anonymous for your time.
If I understand this correctly, I think you want my Inverse Aggregator Quick Measure:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Inverse-Aggregator/m-p/342266
Here I am trying to display all the IDs that are not present instead of sum!
so ouput we be something like
| ID |
| 4 |
| 5 |
| 7 |
| 8 |
| 9 |
- Greg_Deckler7 years ago
Community Champion
It's really pretty much the same thing:
Measure 14 = VAR __ids = SELECTCOLUMNS('Table19',"__id",[ID]) VAR __allIds = ALL('Table18'[ID]) VAR __otherIds = EXCEPT(__allIds,__ids) RETURN CONCATENATEX(__otherIds,[ID],", ")See Page 6, Tables 18 and 19.
- Anonymous7 years agoNot applicable
Greg_Deckler Thanks a lot for this,
But What I really want is output as table, As I would Have 1000's of Id and I would like to link those ID's to other table and extract some other information.
I tried Figuring it out! But Can't get it to work.
- Anonymous7 years agoNot applicable
Hope no one minds, but decided to take crack at this one. Since the end goal is a table which then can be related to other tables, I used Power Query.
- Loaded your two tables from above (Named one Status and Platform)
- Duplicated the Platform table and names Platform Selected. Renamed the original platform Table as Platform Not Selected
- Created a unique list of Products
- Created a parameter using that unique list to choose from
- I used that selection to filter the "Platform Selected" table
- Then did a left anti join between Platform Not Selected and Platform Selecte
- this results in all the products that were not selected
- Loaded all three tables ( though probably only need the platform selected table)
So you get this data model, which can use the new left anti join table to relate to other tables
Here's what the matrix looks like:
Then to update ( little more cumbersom than just a slicer.. but)
Just another way of looking at it I guess, not sure it's what you had in mind though. Below you will find the PBIX file if you are so inclined: