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 two tables with the below structure
SalesData ServiceData
Vehicle Vehicle
SellDate SDate
The SellDate is the date that vehicle is sold and the SDate is the date of service.
I have a filter that return all vehicles sold between two dates.
I want to perform another filter on the result of the first filter and display the distinctcount of vehicles that came back for service
Solved! Go to Solution.
i ended up using the IN operator and it gave me what i wanted
i ended up using the IN operator and it gave me what i wanted
Can you provide a data sample and expected outcome?
this is a download link with sample data
now in this report of you select period 1 from first table, then it displays all data from table 3, the correct outcome should be row S4 only
Try this Measure.
Measure =
VAR __start = MIN( 'Table'[StartDate] )
VAR __end = MAX( 'Table'[EndDate] )
RETURN
CALCULATE(
COUNTROWS( 'Table (3)' ),
'Table (3)'[SDate] >= __start,
'Table (3)'[SDate] <= __end
)
please download the new updated report from the previous link
if you select Period 1 from Table1 then you should get 2 rows returned in table 2 and 1 row in table3, but it is returning 2 rows in table3
S1 is serviced in 2019 but sold in 2015 so it shouldn't appear
this will return all the rows in table3 that matches the date criteria and will totaly neglect to check if the vehicle is sold in that period as well from table2
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 |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |