The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Dear All,
I hope someone can help me on this topic.
I have this Pivot Table:
Where:
Then I wrote the following measure:
Stranges =
VAR LVL1 =
CALCULATE(DISTINCTCOUNT(LIMLOGN[KEY]);LIMLOGN[LvlCode] = 1)
VAR LVL2 =
CALCULATE(DISTINCTCOUNT(LIMLOGN[KEY]);LIMLOGN[LvlCode] = 2)
VAR LVL3 =
CALCULATE(DISTINCTCOUNT(LIMLOGN[KEY]);LIMLOGN[LvlCode] = 3)
VAR LVLTOT =
CALCULATE(DISTINCTCOUNT(LIMLOGN[KEY]))
RETURN
IF(
IF(AND(LVL1>LVL2;LVL1>LVL3);LVL1;
IF(LVL2>LVL3;LVL2;LVL3))<LVLTOT;
"Y";
"N"
)
All works fine. And I have built the following Pivot Table:
But now I need to filter the following table:
Anno=Year
Mese=Month
I need to count only if the measure is N.
Is it possible in some way?
Please, let me know if you need further information.
Thank you in advance!!!
Lara
Solved! Go to Solution.
Hi @larabraghetti,
You can use countax to get the count value of “N”:
Count of N = COUNTAX(FILTER('pivot Table',[Stranges]="N"),[Stranges] )
Screenshot:
If above is not help, can you provide the pbix file with some test data?
Regards,
Xiaoxin Sheng
Hi @larabraghetti,
You can use countax to get the count value of “N”:
Count of N = COUNTAX(FILTER('pivot Table',[Stranges]="N"),[Stranges] )
Screenshot:
If above is not help, can you provide the pbix file with some test data?
Regards,
Xiaoxin Sheng
User | Count |
---|---|
69 | |
65 | |
63 | |
55 | |
28 |
User | Count |
---|---|
112 | |
81 | |
65 | |
48 | |
42 |