Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi,
I am doing basic CDR Analysis. I want to use the Sankey Chart to show the flow of communication between common connections only. Common connection is defined as single dimBParty[B-Party] connected to multiple dimAParty[A-Party].
My data model has two dimension tables dimAParty and dimBParty connected to CDR fact table. I created a measure to filter the common connections only i.e. count distinct A-Parties per B-Party.
DistinctAPartyCount =
CALCULATE(
DISTINCTCOUNT(dimAParty[A-Party]),
CDR
)
The measure seems to work fine when I use it as a filter in a matrix visual - DistinctAPartyCount > 1.
However, when I use it to filter the common connections in a Sankey Chart, the chart goes blank.
Link to the "Sample CDR.pbix" file.
Please help with the correct measure. Thank you.
Solved! Go to Solution.
Hi @N_A_S_H ,
Thanks for your reply. I reviewed a while and found that the cause.
You can observe that it's the gaps caused by issues with the order of your visual fields. The positions of A party and B party are reversed.
Similarly, your matrix has a row B-Party at the top and a column at the bottom with A-Party. Your filter is to show the value when the count of A-Party is greater than 1.
It would be more intuitive if you replaced Grand Total with a filter's metric, as follows:
For each row of the B-Party, the distinctcounting of A-Party with 03004444444 is 1 and will be filtered out. Others greater than 1 will be retained.
At this point I put A-Party in the row and B-Party in the column, as follows:
You can see that, A-Party is assigned to each row, so the distinctcounting of A-Party in each row is 1, which is the filter condition when the distinctcounting of A-Party is greater than 1, all rows will be filtered out.
Summary: This question involves the row context, if you are interested, you can refer to:
Context in DAX Formulas - Microsoft Support
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @N_A_S_H ,
You should note that your measure is placed as a filter at the visual level.
Then I tested it, and the measure filter was placed in the matrix, and it was also empty.
Please provide more details of your issue.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @N_A_S_H ,
Thanks for your reply. I reviewed a while and found that the cause.
You can observe that it's the gaps caused by issues with the order of your visual fields. The positions of A party and B party are reversed.
Similarly, your matrix has a row B-Party at the top and a column at the bottom with A-Party. Your filter is to show the value when the count of A-Party is greater than 1.
It would be more intuitive if you replaced Grand Total with a filter's metric, as follows:
For each row of the B-Party, the distinctcounting of A-Party with 03004444444 is 1 and will be filtered out. Others greater than 1 will be retained.
At this point I put A-Party in the row and B-Party in the column, as follows:
You can see that, A-Party is assigned to each row, so the distinctcounting of A-Party in each row is 1, which is the filter condition when the distinctcounting of A-Party is greater than 1, all rows will be filtered out.
Summary: This question involves the row context, if you are interested, you can refer to:
Context in DAX Formulas - Microsoft Support
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @N_A_S_H
I dupklicated your Sankey tab and put measure and I do get some figures, not blanks.
See results below
Proud to be a Super User!
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
93 | |
85 | |
84 | |
73 | |
49 |
User | Count |
---|---|
142 | |
133 | |
110 | |
68 | |
55 |