Forum Discussion
Line Chart Visualization Error
Hello ,
Im struggling with a line chart report , my target is to display the result between march 2020 and march 2021 , I used this request :
LA = CALCULATE([ID INCIDENT(No Blank)],DATESINPERIOD(ExportSM9[ConvertDATEOUVE],DATE(2020,3,1),13,MONTH))
But I still have the results between Jan2020 and December 2021
My result is :
Thnak you
54 Replies
- amitchandakSuper User
RIMMIMI , does this measure uses +0 or handle is blank
[ID INCIDENT(No Blank)]
refer, +0 in the first var can give all dates. So I handled that remove dates again
0 between range
Measure = var _1= SUM(Opportunity[Opportunity count]) +0
var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
return
CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1)) - Jihwan_KimSuper User
Hi, RIMMIMI
If it is OK with you, please share your sample pbix file, then I can try to have a look and come up with a desirable solution.
Thank you.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster.
- RIMMIMIFrequent Visitor
Hello
I shared with you but It seems that you didn't see it thank you
- AnonymousNot applicable
HI RIMMIMI
It looks like either your DAX query doing zero handling because of measure you have created or your dataset having entry for the same.
In new page just drag this measure in table visual with all required column and check if data is coming till december 2021 or not . If it is coming with 0 value then measure need to be corrected.
Thanks
- RIMMIMIFrequent Visitor
Hello ,
I had a matrix before transforming it to a chart line , indeed the values after march are 0, because my data stop at march 2021, I dont understand why it continues until december 2021
- AnonymousNot applicable
Hi RIMMIMI ,
Not very clear. Could you please share some sample data and the expected result to have a clear understanding of your question? I can do some tests for you. You can save your files in OneDrive, Google Drive, or any other cloud sharing platforms and share the link here.
Please try to create the following measure and drag it to the filter of line chart visual, then select "=1".
Measure = IF(MAX(ExportSM9[ConvertDATEOUVE]) in DATESINPERIOD(ExportSM9[ConvertDATEOUVE],DATE(2020,3,1),13,MONTH),1,0)Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- RIMMIMIFrequent Visitor
Hello
Thank you for your reply , unfortunately id does'nt work this request , the link to my pbix is here an thank you:https://drive.google.com/drive/folders/1xDDKHrsqzYuKdyGsktOwYB_ixSpSSFjq
Thank you
Rim
- AnonymousNot applicable
Hi RIMMIMI ,
I can't open it. It seems that I need a permission. Could you share your sample file that I can download it directly?
Best Regards,
Yuna