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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
sphillips
New Member

Ratio between aggregates of related tables with date filter

Hello!

 

I've tried everything I can think of, so hoping someone can help.  

 

I have two main tables:  ACCOUNTS, INSPECTIONS  (one ACCOUNT, many INSPECTIONS - related by unique ID)

 

What I want in the end is the ratio between the number of accounts and number of inspections split by a ACCOUNTS.CITY field with the ability to modify by INSPECTION.DATE.    

 

My issue after building the visualization is that the number of ACCOUNTS (which should be fixed) also adjusts downward as I change the slicer for INSPECTION.DATE.   

 

I've tried to ALL, ALLEXCEPT and was able to get all the ACCOUNTS, but lost the ability to filter by CITY.   I tried to make a calculated table that is not joined but cannot get the CITY filter to work as they are now unrelated.  

 

Any help would be greatly appreciated.  


Best,

 

Shasta

2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hi @sphillips ,

Can you please post a dummy file? If you can't, please share some sample data and the expected results that will make us understand your requirement clearly. 

 

Please see this post regarding How to Get Your Question Answered Quickly:

 https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Best Regards,

Xue Ding

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

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I was able to solve the issue by creating a calculated table based on the ACCOUNTS table and linking it the INSPECTIONS by way of the CITY only.  Thanks! 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.