Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
87 | |
82 | |
71 | |
49 |
User | Count |
---|---|
143 | |
124 | |
107 | |
60 | |
55 |