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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

FIlter Values By Units | two tables

Guys, I have the table below that has the consumption values ​​of some units, ordered by date.

FelipeEng_0-1611774460804.png

However, I have another table that gives me values ​​also ordered by only 3 columns of the first table, the Date, Customer and Profile. Dont have units.

22.png

In Excel I could find out how much percent each unit represents by doing the following below:

consumption Local 1 / SUMIFS(DATE;CUSTOMER;PROFILE)

23.png

 

How to do this in BI?

Thnks!

1 ACCEPTED SOLUTION

5 REPLIES 5
rfigtree
Resolver III
Resolver III

another way probably not as good.

if multiple dates you will need to modify to suit.

rfigtree_0-1612678189329.png

rfigtree_1-1612678214165.png

 

wdx223_Daniel
Super User
Super User

there are two methods to solve this

1) create a calculated column for each table to combine the 3 columns of DATE;CUSTOMER;PROFILE as a Key, then create a relationship between these tables. and use a measure to do this trick

%=divide(1,countrows(table2))

2) no need to create a relationship, directly use the measure like this

%=calculate(divide(1,countrows(table2)),treatas(summarize(table1, table1[DATE],table1[CUSTOMER],table1[PROFILE]),table2[DATE],table2[CUSTOMER],table2[PROFILE]))

Anonymous
Not applicable

Hi Daniel,

 

Thanks for the answer. I tried here, however, the results obtained at 100% for each unit, do not have the values ​​that each unit makes up in the profile., like my third image above.

 

FelipeEng_1-1612643053809.png

I don't know if the questioning was well understood. But each unit has a weight within the profile.

 

wdx223_Daniel_0-1612674710606.png

 

Anonymous
Not applicable

Dude, you're awesome! Thank you very much.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.