Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello everyone, i want to count how many user that use only 1 Tcode? i want to display a card for example:
Used 1 Tcode 15 Users |
currently i already use distince count the Tcode in the first table. for second table, that same user use the same Tcode everyday, but user use only 1 same tcode.
please take a look at the screenshot. thank you for your help so much.
first table
second table
Solved! Go to Solution.
Hi, I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Used Tcodes: =
COUNTROWS(DISTINCT(Data[Tcode]))
Used only one Tcode: =
VAR _t =
FILTER ( VALUES ( User[User] ), [Used Tcodes:] = 1 )
RETURN
COUNTROWS ( _t )
Hi, I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
Used Tcodes: =
COUNTROWS(DISTINCT(Data[Tcode]))
Used only one Tcode: =
VAR _t =
FILTER ( VALUES ( User[User] ), [Used Tcodes:] = 1 )
RETURN
COUNTROWS ( _t )
THANK YOU SO MUCH. this is exactly what i am looking for. 😍🙏
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
8 | |
6 |