Forum Discussion
ripstaur
5 years agoHelper III
Filtering out duplicates
So, this ought to be easy, but one of the caveats in the online training is that filters are not something a newbie like me will understand first time through. So here's the setup - I have some fac...
- 5 years ago
Hi ripstaur ,
Create a measure like so:
Measure = VAR t = SUMMARIZE ( 'Table', 'Table'[Region], 'Table'[County], "Total_", MAX ( 'Table'[County total cases] ) ) RETURN SUMX ( t, [Total_] )BTW, .pbix file attached.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ripstaur
5 years agoHelper III
| 1 | C | Wonderful | 364 | 1308 | 1 | 2305 |
| 1 | B | Wonderful | 364 | 1587 | 2 | 1856 |
| 1 | A | Wonderful | 364 | |||
| 1 | D | Eagle | 160 | |||
| 1 | F | Mockingbird | 96 | |||
| 1 | E | Robinette | 83 | |||
| 1 | G | Cowpie | 60 | |||
| 1 | H | Georgeana | 90 | |||
| 1 | I | Draggit | 149 | |||
| 1 | J | Lackett | 152 | |||
| 1 | K | Pickit | 154 | |||
| 2 | L | Simpson | 269 | |||
| 2 | M | Simpson | 269 | |||
| 2 | N | Ronson | 190 | |||
| 2 | O | Johnson | 129 | |||
| 2 | P | Albemarle | 120 | |||
| 2 | Q | Johannesburg | 177 | |||
| 2 | R | Kimtown | 168 | |||
| 2 | S | Popular | 132 | |||
| 2 | T | Wilherm | 190 | |||
| 2 | U | Sampson | 101 | |||
| 2 | V | Fuchness | 111 | |||
ripstaur
5 years agoHelper III
Now I see that the column headers didn't paste in...column A is Region, B is Facility, C is County D is County total cases, E contains the regional totals I want, F is region titles and G is the totals I'm getting now because of the duplicates. I have tried just specifying county totals, but since there are three entries for Wonderful County it adds them all together.