Forum Discussion
Skemaz
8 years agoAdvocate II
Create visual from filtered data
Hi In the screen-shot below, I'm trying to create a pie chart (or similar) from my filtered data. (1) The filtered numbers are being displayed in the "Card with States" by OKViz. (2) & (3) are the...
- 8 years ago
Hi
Thanks for helping.
What wound up working for me was the following:
primaryFiltered = CALCULATE(COUNT(Sheet1[Colour]), ALLEXCEPT(Sheet1, Sheet1[Substance], Sheet1[Population]))
secondaryCount = COUNT(Sheet1[Colour])
Regards, Mark.
Abduvali
8 years agoSkilled Sharer
OK then create 4 measures:
- Race Measure = Calculate(SUM(YourTable[YourValue]),YourTable[RaceColumn] = "Race")
- this will let you get you 384 value, its same as the way you filtering it only by Race in that card
- Horse Measure = Calculate(SUM(YourTable[YourValue]),YourTable[RaceColumn] = "Horse")
- this will let you get you 16 value, its same as the way you filtering it only by Horse in that card
- Then create 3rd measure:
- % Measure = [Race Measure] / [Horse Measure]
- then select display as Percentage from Modelling tab / Data type
- % Measure = [Race Measure] / [Horse Measure]
- For the last one you will need another measure:
- Jockey Measure = [Horse Measure] / Distinctcount(YourTable[JockeyColumn])
- then select display as Percentage from Modelling tab / Data type
- Jockey Measure = [Horse Measure] / Distinctcount(YourTable[JockeyColumn])
I hope this will help if you have any questions let me know.
Regards
Abduvali
Skemaz
8 years agoAdvocate II
Hi
Thanks for helping.
What wound up working for me was the following:
primaryFiltered = CALCULATE(COUNT(Sheet1[Colour]), ALLEXCEPT(Sheet1, Sheet1[Substance], Sheet1[Population]))
secondaryCount = COUNT(Sheet1[Colour])
Regards, Mark.