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 want something similar to ALLEXCEPT. This function takes all the table without any filter and pays attention to only one of them. Basically, I want to supply this function with the table, which is already filtered (not the table at its fullest). I unsuccessfully tried using VALUES and KEEPFILTERS.
This was my data before I introduced additional filter:
I successfully showed the Percentage in the tooltip:
This formula was used:
Percentage =
DISTINCTCOUNT ( Table1[ID] )
/ CALCULATE (
DISTINCTCOUNT ( Table1[ID] ),
ALLEXCEPT ( Table1, Table1[Year] )
)
Then another column was added so that data now looks like this:
It was used as a filter:
Now the results are wrong:
There will be more filters, so I don't want to reference them all. Without referencing this new column, how can I make my results appear correct?
Solved! Go to Solution.
Hi @Zyg_D ,
We can use the following measure to meet your requirement.
Percentage =
DISTINCTCOUNT ( 'Table'[ID] )
/ CALCULATE (
DISTINCTCOUNT ( 'Table'[ID] ),
FILTER(ALLSELECTED ( 'Table'),'Table'[year]=MAX('Table'[year]))
)
The result like this,
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?
BTW, pbix as attached.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Zyg_D ,
We can use the following measure to meet your requirement.
Percentage =
DISTINCTCOUNT ( 'Table'[ID] )
/ CALCULATE (
DISTINCTCOUNT ( 'Table'[ID] ),
FILTER(ALLSELECTED ( 'Table'),'Table'[year]=MAX('Table'[year]))
)
The result like this,
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?
BTW, pbix as attached.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
113 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |