Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I want to calculate conversion as following:
Table AA
Table BB
I want to count the matching records between the two tables with the condition that the latest date of table AA should be <= 15 days of the earliest date in table BB.
As per the above conditions the conversion count should be 1 as following
@deedeedudu , In case you need column you add column to table 2
maxx(filter(Table1, Table1[Date] <= Table2[Date] ), Table1[Date])
Count is
Count(filter(Table1, Table1[Date] <= Table2[Date] && Table1[Contract_id] = Table2[Contract_id]), Table1[Date])
Hi,
It is not giving the required output.
Hi @deedeedudu,
You can try to use the following measure formula to calculate the row count based on your condition:
formula =
VAR currID =
MAX ( TableA[ID] )
VAR _dateB =
MAXX ( FILTER ( TableB, [ID] = currID ), [Date] )
RETURN
COUNTROWS (
FILTER (
ALLSELECTED ( TableA ),
[ID] = currID
&& [Date]
<= DATE ( YEAR ( _dateB ), MONTH ( _dateB ), DAY ( _dateB ) - 15 )
)
)
Regards,
Xiaoxin Sheng
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
96 | |
69 | |
45 | |
40 | |
30 |
User | Count |
---|---|
154 | |
94 | |
62 | |
42 | |
41 |