Skip to main content
cancel
Showing results for
Search instead for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

New Member

Frequency Count of measure output values from a table visual

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.

2 ACCEPTED SOLUTIONS
Super User

@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

Community Support

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.

3 REPLIES 3
Community Support

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.

Super User

@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

New Member

Hi Amit,

This worked. Thank you so much for help!

Helpful resources

Announcements

Fabric certifications survey

Certification feedback opportunity for the community.

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors