March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi All,
I have created a measure and building a simple report with Recorded Date and measure as columns, I'm using Year(RecordedDate) as slicer, When i select a year in slicer my report is showing zero's for all the year and giving values only for slicer selected Year,
Thanks in Advance.
Hi @VenkatTav ,
You will get 0 since your code added to 0 if its blank, you can update your code as below:-
CNT_LNBR_CH07 = CALCULATE(COUNT(LOAN[LOAN_NBR]),LOAN[CHAPTER_NBR]=7)
For further assistance please help with below details:-
Could you please share your sample data in raw format not screenshot?
Please let us know your date also coming from Loan table?
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
You can not display blank values in reports , you have to convert blanks or nulls to 0's in reports, it will be usual case in all the organizations.
Yes Recorded date is coming from Loan table only
Consider this as sample data.
Loan Recorded date | Loan NBR | Chapter |
01-01-1988 | 123451 | 7 |
02-01-1988 | 134562 | 7 |
03-01-1988 | 123453 | 7 |
04-01-1988 | 123454 | 11 |
05-01-1992 | 123458 | 11 |
05-01-1992 | 123459 | 11 |
05-01-1992 | 123456 | 13 |
05-01-1992 | 123457 | 13 |
09-01-1993 | 123458 | 13 |
10-01-1993 | 123496 | 13 |
@VenkatTav , You could create a another measure as below and use it as filter on visual:-
_filter =
IF (
YEAR ( MAX ( Loan[RecordedDate] ) )
= YEAR ( SELECTEDVALUE ( Loan[RecordedDate] ) )
&& NOT ( ISBLANK ( MAX ( Loan[RecordedDate] ) ) ),
1,
0
)
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
70 | |
68 |