The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
20 | |
18 | |
18 | |
14 | |
13 |
User | Count |
---|---|
38 | |
31 | |
22 | |
20 | |
18 |