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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jaq
New Member

How to create an indexing column in table visualization

Hi guys,

 

I have two tables. One table contains all users, and the other is a subset sample.

 

jaq_0-1689907943451.png

I want to create a table visualisation that has the brand_category, the number of distinct hashed_emails in table 1 and the index. The index is calculated by (%GT of distinct hashed_emails in table 1) / (%GT of distinct hashed_emails in table 2) where table 1 is my index. This basically just tells me if a particular brand is over-indexing in my sample compared to the population.

 

I also want all filters and slicers on the page to affect this table.

 

I can easily create a table where I have the brand category, and the %GT from both tables, but I'm unable to do the calculation where I divide one by the other.

 

Can anybody help?

Cheers

 

1 REPLY 1
amitchandak
Super User
Super User

@jaq , Not very clear, but the new rownumber function can help

Power BI - New DAX Function: Rownumber- https://www.youtube.com/watch?v=yS9-IQjUDwg&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L&index=1

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.