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.
Hello i am trying to count rows between dates, it was wotking fine but when i add 'FACT - CW'[Transaction] = "test" as a filter it seems to ignore it. This is a calculated col
Days Old =
CALCULATE (
COUNTROWS ( 'DIM - Date Table' ),
DATESBETWEEN ( 'DIM - Date Table'[Date], 'FACT - CW'[Date of Receipt],'FACT - CW'[C-Date]-1),
'DIM - Date Table'[IsWorkingDay] = 1,
'DIM - Date Table'[IsHoliday] = 0,
'FACT - CW'[Transaction] = "test"
)
Solved! Go to Solution.
Hi @NewbieJono
please try
Days Old =
CALCULATE (
COUNTROWS ( 'DIM - Date Table' ),
DATESBETWEEN (
'DIM - Date Table'[Date],
'FACT - CW'[Date of Receipt],
'FACT - CW'[C-Date] - 1
),
'DIM - Date Table'[IsWorkingDay] = 1,
'DIM - Date Table'[IsHoliday] = 0,
'FACT - CW'[Transaction] = "test",
CROSSFILTER ( 'DIM - Date Table'[Date], 'FACT - CW'[Date], BOTH )
)
Hi @NewbieJono
please try
Days Old =
CALCULATE (
COUNTROWS ( 'DIM - Date Table' ),
DATESBETWEEN (
'DIM - Date Table'[Date],
'FACT - CW'[Date of Receipt],
'FACT - CW'[C-Date] - 1
),
'DIM - Date Table'[IsWorkingDay] = 1,
'DIM - Date Table'[IsHoliday] = 0,
'FACT - CW'[Transaction] = "test",
CROSSFILTER ( 'DIM - Date Table'[Date], 'FACT - CW'[Date], BOTH )
)
Your date table filters FACT - CW - not the other way around, that's why it's ignored.
Can you share a picture of the data model (relations)?
this as close as i can think (Dax has changed a bit), it does not work
Days Old =
CALCULATE (
COUNTROWS ( 'DIM - Date Table' ),
DATESBETWEEN (
'DIM - Date Table'[Date],
'FACT - Casework'[Date of Receipt],
'FACT - Casework'[COO Date] - 1
),
'DIM - Date Table'[IsWorkingDay] = 1
&& 'DIM - Date Table'[IsHoliday] = 0,
FILTER ( 'FACT - Casework', 'FACT - Casework'[Transaction] = "unallocated" )
)
The only relationship is between the date tabel and the FACT CW table
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
218 | |
88 | |
83 | |
65 | |
56 |