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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ricardocamargos
Continued Contributor
Continued Contributor

Calculated Table

Hi there!

 

I need to create a visual which shows products bought by customers (It's like a histogram). For example:

 

100 customers buy only 10 products

  50 customers buy only 15 products...

 

I tried to create a calculated table, it works. However when I filter any date the values are wrong. I think calculated table is evaluated when the data is loaded, so it's not affected by filters on the visual. After that, I tried to use a measure (DISTINCTCOUNT(PRODUCTS)) in a column. but it doesn't work.

 

Does anyone know how to create a visual like that ?

 

Thank you,

 

Ricardo

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

Do you mean sample about data or structure ??

I solve this situation with dynamic segmentation, I saw it on this website:

 

http://www.daxpatterns.com/dynamic-segmentation/

 

Thank you,

 

Ricardo

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @ricardocamargos,

 

Please provide some sample for test, it will be help for analysis.

 

Regards,

Xiaoxin Sheng

Hi @Anonymous,

 

Do you mean sample about data or structure ??

I solve this situation with dynamic segmentation, I saw it on this website:

 

http://www.daxpatterns.com/dynamic-segmentation/

 

Thank you,

 

Ricardo

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.