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.
Hi,
I am currently building a report in which will count the number of records which has a "blank" termination date.
And also, what i want to do is whenever i select a specific year, it will count all the records from the beginning to the selected date.
Ex.
Selected year = 2016
Data to Display = All previous records up to selected year which is 2016
Thank you
Solved! Go to Solution.
You may refer to the following DAX that adds a measure.
Measure = IF ( HASONEVALUE ( 'Calendar'[Date].[Year] ), CALCULATE ( COUNTBLANK ( Table1[End Date] ), YEAR ( Table1[Start Date] ) <= VALUES ( 'Calendar'[Date].[Year] ) ) )
You may refer to the following DAX that adds a measure.
Measure = IF ( HASONEVALUE ( 'Calendar'[Date].[Year] ), CALCULATE ( COUNTBLANK ( Table1[End Date] ), YEAR ( Table1[Start Date] ) <= VALUES ( 'Calendar'[Date].[Year] ) ) )
@dantabangcura for blank values you can use
=COUNTBLANK(table[terminationdate])
create a measure for
records for the year = calculate (countrows(table), year(date) = 2016)
Proud to be a Super User!
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 |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |