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

Divide measure of different facts in a single table

Hi all,

 

I've been struggling with the following example:

Dateid_factid_clientid_productid_employeeid_employeecontractid_costcenter_clientid_costcenter_employeeMeasure Count of ClientsMeasure Amount of Acitivty Hours
1-7-2024Accomodations1AccomodationA00CostcenterA01 
1-7-2024Activities1ActivityASarahContractACostcenterACostcenterX 3,5

 

I have a fact table with two different facts combined, accomodations and activies. Both facts have their own measure. 

The accomadtions fact has a count of the amount of clients, Measure A.

The activities fact has a count of the amount of hours, Measure B.

 

My goal is to combine the two as such so that I can make a new measure, which divides measure B with measure A, but keeping the filtercontext of the accomodation product and the employee info such as name, contract and employee costcenter:

Dateid_factid_clientid_productid_employeeid_employeecontractid_costcenter_clientid_costcenter_employeeMeasure A: Count of ClientsMeasure B: Amount of Acitivty HoursHours per Client (Measure B / Measure A)
1-7-2024Accomodations1AccomodationASarahContractACostcenterACostcenterX13,53,5

 

I've been trying to use SUMMARIZE and TREATAS, but I got completely lost in there.

The example only contains one client, but the table contains multiple clients, accomodations and activites. 

 

Does anyone has a solution for this example?

 

Best regards

 

 

EDIT: Screenshots for better readability:

ZGA_M_3-1720618543538.png

 

ZGA_M_2-1720618512620.png

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

 

Please try this:

First of all, create 2 new calculated table:

_Activities = FILTER('Table','Table'[id_fact] = "Activities")
_Accomodations = FILTER('Table','Table'[id_fact] = "Accomodations")

vzhengdxumsft_0-1720664855468.png

vzhengdxumsft_1-1720664861722.png

Then add a table visual in the report view:

vzhengdxumsft_2-1720665003259.png

 

 

Best Regards

Zhengdong Xu
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

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous 

 

Please try this:

First of all, create 2 new calculated table:

_Activities = FILTER('Table','Table'[id_fact] = "Activities")
_Accomodations = FILTER('Table','Table'[id_fact] = "Accomodations")

vzhengdxumsft_0-1720664855468.png

vzhengdxumsft_1-1720664861722.png

Then add a table visual in the report view:

vzhengdxumsft_2-1720665003259.png

 

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
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.