Hi Guys,
Can you please help me how i will get the count based on the filter selected. I have month data like 1,2,3,4,5
if i select all it should give me result as "5" else based on the numbers of month selected it should give.
If in filter, i have selected 1,4,5 then i am expecting result as 3. Please help me how i can achieve this based on the filter selection it should get me the result.
Thanks.
@Anonymous , simple count should work in that case
COUNT('Table'[Month])
@amitchandak No it's giving the count of rows for each month. Let me explain once again as i told based on the month selected it should give the result. Only 5 output i am expecting the result based on the month selected like if only 1 month selected than 1,
if 2 selecected than 2
if 3 selecected than 3
if 4 selecected than 4
if 5 selecected than 5
please do let me know how it can be acheived.
Hi @Anonymous
can you try this:
Number of selected months = CALCULATE(distinctcount('Table'[Month]))
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
No it's giving the count of rows for each month. Let me explain once again as i told based on the month selected it should give the result. Only 5 output i am expecting the result based on the month selected like if only 1 month selected than 1,
if 2 selecected than 2
if 3 selecected than 3
if 4 selecected than 4
if 5 selecected than 5
please do let me know how it can be acheived.
Create a measure like this?
No it's giving the count of rows for each month. Let me explain once again as i told based on the month selected it should give the result. Only 5 output i am expecting the result based on the month selected like if only 1 month selected than 1,
if 2 selecected than 2
if 3 selecected than 3
if 4 selecected than 4
if 5 selecected than 5
please do let me know how it can be acheived.
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
User | Count |
---|---|
111 | |
73 | |
49 | |
33 | |
33 |
User | Count |
---|---|
148 | |
95 | |
86 | |
50 | |
41 |