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 Guys,
Need your help here!
So I have a table visual that looks like below. Sales Count is the output of a measure derived based on Customer ID.
I want to create another table visual that will look like below. Basically the distinct values of Sales Count from previous visual and Frequency is the number of occurences.
How can I achieve this? Any help will be greatly appreciated.
Solved! Go to Solution.
@murar , for the second visual, you have to create a measure and an independent/Disconnected Count table. You need Dynamic segmentation
Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ
Hi @murar ,
Please try below steps:
1. below is my test table
Table:
2. add a new column in Table
Sales Count =
VAR cur_id = [Customer ID]
VAR tmp =
FILTER ( 'Table', [Customer ID] = cur_id )
RETURN
SUMX ( tmp, [Sales] )
3. create a new table with below dax formula
Table 2 = VALUES('Table'[Sales Count])
4. create a measure with below dax formula
Frequency =
VAR _a =
SELECTEDVALUE ( 'Table 2'[Sales Count] )
VAR tmp =
FILTER ( 'Table', [Sales Count] = _a )
RETURN
CALCULATE ( DISTINCTCOUNT ( 'Table'[Customer ID] ), tmp )
5. add a table visual with measure and field
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I have a similar problem, but the measure output is a category and not a number. The category changes deppending on slicer selections:
I want to count the number of each category, and the percentage of each category of the total.
The examples below use numbers, not alphabetical descriptions.
How do I use alphanumeric buckets?
Thanks,
Craig
Hi @murar ,
Please try below steps:
1. below is my test table
Table:
2. add a new column in Table
Sales Count =
VAR cur_id = [Customer ID]
VAR tmp =
FILTER ( 'Table', [Customer ID] = cur_id )
RETURN
SUMX ( tmp, [Sales] )
3. create a new table with below dax formula
Table 2 = VALUES('Table'[Sales Count])
4. create a measure with below dax formula
Frequency =
VAR _a =
SELECTEDVALUE ( 'Table 2'[Sales Count] )
VAR tmp =
FILTER ( 'Table', [Sales Count] = _a )
RETURN
CALCULATE ( DISTINCTCOUNT ( 'Table'[Customer ID] ), tmp )
5. add a table visual with measure and field
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@murar , for the second visual, you have to create a measure and an independent/Disconnected Count table. You need Dynamic segmentation
Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ
Hi Amit,
This worked. Thank you so much for help!
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 |
---|---|
94 | |
92 | |
83 | |
71 | |
49 |
User | Count |
---|---|
143 | |
120 | |
110 | |
59 | |
57 |