Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have the following tables:
Date(Dimension) <--- Exposure (Fact) ---> Incident (Fact) ---> Inspection (Fact Needing Filter)
Sample of Exposure Table Is:
IncidentID | Exposure Close 1 | Exposure Close 2 | FNOL to First Closure |
1234 | 1/1/2021 | 2/1/2021 | 10 |
5678 | |||
910112 | 1/15/2021 | 1/15/2021 | 20 |
I have two relationships from exposure to dates that I use USERELATIONSHIP to correctly display according to Exposure Close 1 and Exposure Close 2.
Avg FNOL to First Close Days (FC) =
CALCULATE (
AVERAGE ( Exposure[FNOL to First Closure] ),
Exposure[Exposure Close 1] <> BLANK (),
USERELATIONSHIP ( Exposure[Exposure Close 1], Dates[Date] )
)
That measure works great. I am now trying to use a legend in a line graph to seperate by sales type in the Inspection table.
Incident table
ID | Color | Date Opened |
1234 | Blue | 12/10/2020 |
910112 | Green | 12/11/2020 |
5678 | Yellow | 12/15/2020 |
Inspection Table
IncidentID | Type | Order Date | First Order Flag |
1234 | InternetSale | 12/25/2020 | 1 |
1234 | RetailSale | 12/26/2020 | |
5678 | InternetSale | 12/20/2020 | |
5678 | RetailSale | 12/19/2020 | 1 |
5678 | RetailSale | 12/21/2020 |
I want to basically filter inspection table to return only values = 1 and then add inspection type as a legend on my line graph. I have tried the below to no avail.
Avg FNOL to Last Close Days (LC) =
CALCULATE (
AVERAGE ( Exposure[FNOL to First Closure] ),
Exposure[Exposure Close 1] <> BLANK (),
Inspection[First Order Flag] = 1,
USERELATIONSHIP ( Exposure[Exposure Close 1], Dates[Date] ),
USERELATIONSHIP ( Exposure[IncidentID], Incident[id] ),
USERELATIONSHIP ( Inspection[IncidentID], Incident[id] )
)
Hi @sdsumann ,
What is the result you want to present?
And could you pls share your pbix file? Remember to remove confident data.
Best Regards
Lucien
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |