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 folks,
I am struggling with what I thought should be simple. I m ranking the clients as per the below :
The problem is I want to count the the number of clients by theire status.
The Dax are as the below:
Solved! Go to Solution.
Hi @Baroumy
Manually insert a single column disconnect table that contains all statuses (unique list of statuses). Place the new column in a table visual along with the following measure.
Count =
SUMX (
CROSSJOIN ( VALUES ( 'Table'[Code] ), VALUES ( Status[Status] ) ),
INT ( [Client Status] = Status[Status] )
)
Hi @Baroumy
Manually insert a single column disconnect table that contains all statuses (unique list of statuses). Place the new column in a table visual along with the following measure.
Count =
SUMX (
CROSSJOIN ( VALUES ( 'Table'[Code] ), VALUES ( Status[Status] ) ),
INT ( [Client Status] = Status[Status] )
)
Hi @tamerj1
So I should do the first step in the query editor by clicking the "enter data" button and creating a new table named list of status and manually entering the 4 statuses?
PS: I need to use the total counts in a single card visual.
@tamerj1 ,
Thanks al lot.
However the total are wrong, I believe it is due to the [year of sales] and [year of sales PY] measures and the dates filter.
Below are the results :
The existing count is 0! it shoudl be 288.
@Baroumy
Try to select a year in a slicer to see what happens. Also I did not understand what is the problem with the total?
*EDIT
Check the spelling of Existing and make sure it matches 100%. It could be a space.
Thank you @tamerj1 .
The problem was I am relying on the client codes coming from each year's transactions. I added a client list table and I guess the problem is solved.
thank you.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |