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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
phelms
Frequent Visitor

Show development in hitrate per day - multiple tables

Hi,

 

I am trying to show the hitrate per day in a bar chart, filtered by date.

 

The hitrate is a measure, combining data from two tables: Sales and Calls. Both tables contain multiple posts on the same date and by the same user. The measure is: Salgsforsøg% = COUNT(Sale_reg[LID1]) / sum(TLF_application_user[callsanswered])

 

I created a third table, creating a relationship between the user id from both tables to a unique user id in the third table (many to one - both ways)

 

I try to create a fourth table to sync the dates from the two tables, using: TimeDim = CALENDAR(FIRSTDATE(TLF_application_user[date]);LASTDATE(TLF_application_user[date])).

 

I cannot create a relationship between the Sales and Calls table to the TimeDim table, since this would introduce ambiguity between the two filter tables.

 

If I leave out the filter, it shows the total count of sales, divided by the filtered amount of calls answered.

 

How do I work around this problem?

2 REPLIES 2
v-caliao-msft
Employee
Employee

@phelms,

 

Could you please elaborate your data structure? If possible provide us some sample data and screenshots, so that we can make further analysis. You can also upload a pbix file to Onedrive or any web storage and share the link. Do mask sensitive data before uploading.

 

Regards,

Charlie Liao

I try to connect these two tables by date and user. The connection is many-to-many, but the tables are in different sizes (you can receive a call without making a sale). Each line in the table "Sale_reg" represent a sale.

 

I also imported a table, containing the unique user ID's to link the tables, and I created a TimeDim table, using this formula: TimeDim = CALENDAR(FIRSTDATE(TLF_application_user[date]);LASTDATE(TLF_application_user[date])).

 

In the relations, I know the current setup creates an ambiguity, but I can not wrap my head around how to make the connection?

Table overviewTable overviewRelation overviewRelation overview

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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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