Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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, @CR7
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, @CR7
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.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
38 | |
31 | |
26 |
User | Count |
---|---|
97 | |
87 | |
43 | |
40 | |
35 |