The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have the following table "CADASTRO":
and i have a "CALENDARIO" table created with CALENDARAUTO, only with a date column.
In this calendario table , I create the following CALCULATED COLUMN :
Solved! Go to Solution.
Hi, @Anonymous
You can try the following methods.
Measure =
CALCULATE (
COUNTROWS ( 'CADASTRO' ),
FILTER (
ALL ( 'CADASTRO' ),
'CADASTRO'[DATA_INSCRICAO2] <= MAX ( 'CALENDARIO'[Date] )
&& 'CADASTRO'[DATA_STATUS] > MAX ( 'CALENDARIO'[Date] )
&& 'CADASTRO'[STATUS] = "M"
)
)
Or:
Measure =
CALCULATE (
COUNTROWS ( 'CADASTRO' ),
FILTER (
ALL ( 'CADASTRO' ),
'CADASTRO'[DATA_INSCRICAO2] <= SELECTEDVALUE ( 'CALENDARIO'[Date] )
&& 'CADASTRO'[DATA_STATUS] > SELECTEDVALUE ( 'CALENDARIO'[Date] )
&& 'CADASTRO'[STATUS] = "M"
)
)
Please try to see if you can get the results you expect.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
tHANKS FOR HELP
Hi, @Anonymous
You can try the following methods.
Measure =
CALCULATE (
COUNTROWS ( 'CADASTRO' ),
FILTER (
ALL ( 'CADASTRO' ),
'CADASTRO'[DATA_INSCRICAO2] <= MAX ( 'CALENDARIO'[Date] )
&& 'CADASTRO'[DATA_STATUS] > MAX ( 'CALENDARIO'[Date] )
&& 'CADASTRO'[STATUS] = "M"
)
)
Or:
Measure =
CALCULATE (
COUNTROWS ( 'CADASTRO' ),
FILTER (
ALL ( 'CADASTRO' ),
'CADASTRO'[DATA_INSCRICAO2] <= SELECTEDVALUE ( 'CALENDARIO'[Date] )
&& 'CADASTRO'[DATA_STATUS] > SELECTEDVALUE ( 'CALENDARIO'[Date] )
&& 'CADASTRO'[STATUS] = "M"
)
)
Please try to see if you can get the results you expect.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.