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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
murar
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.

murar_0-1708081241056.png

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.

murar_1-1708081403077.png

How can I achieve this? Any help will be greatly appreciated. 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Anonymous
Not applicable

Hi @murar ,

Please try below steps:

1. below is my test table

Table:

vbinbinyumsft_0-1708328218295.png

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

vbinbinyumsft_1-1708328405132.png

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.

View solution in original post

4 REPLIES 4
cstjayre
New Member

I have a similar problem, but the measure output is a category and not a number. The category changes deppending on slicer selections:

cstjayre_0-1728459445591.png

 

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

Anonymous
Not applicable

Hi @murar ,

Please try below steps:

1. below is my test table

Table:

vbinbinyumsft_0-1708328218295.png

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

vbinbinyumsft_1-1708328405132.png

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.

amitchandak
Super User
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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi Amit, 

 

This worked. Thank you so much for help!

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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