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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Tio_Chiel
New Member

Calculation a % from 2 independend queries

Hi All,

 

I have 2 queries

1 Cost query where I have per cost account the cost

1 Sales Revenue where I have the revenues

 

Both queries are linked to a mastertable slicer where I can select the periods

I created a measure in the Cost table where I did % Revenue=Sum [Cost] / Sum [Revenue]

 

As a total this works fine but the moment I create a view on Month level the [Cost] is split by month but the Revenues remain total year.

Can I create a measure function that also links the period of the revenue to the period of the cost ??

2 REPLIES 2
amitchandak
Super User
Super User

@Tio_Chiel , seem like the join of revenue is inactive or not done.

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

Thank for your suggestion; I created a link in both files linking multiple dimensions; Basically this works but  I would like the cost table to be the one always showing the full figures;

Example: if in Jan Norway has Cost in a specific category but no Sales in that same category I still want it to be shown; Currently in a many to many relation it looks it leaves the cost out where it can not establish the link below a visualization of what I mean Total % should be 8.83 and not 8.67

Tio_Chiel_0-1689841294292.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors