Forum Discussion
Filter columns and compare dates
Hi JamesCoco ,
I created a sample pbix file (see attachment) for you, please check whether that is what you want.
1. Unpivot the document fields in Power Query Editor
2. Create a calculated column as below
Status =
VAR _controldate =
CALCULATE (
MAX ( 'Table'[Date] ),
FILTER (
'Table',
'Table'[Document] = EARLIER ( 'Table'[Document] )
&& 'Table'[Title] = "ControlItem"
)
)
RETURN
IF (
'Table'[Title] = "ControlItem",
BLANK (),
IF ( 'Table'[Date] >= _controldate, "Read", "Unread" )
)
3. Create a column chart(Axis: Documents Legend: New calculated column[Status] Values: count of Title) and filter Status is not blank
Best Regards
Hi Rena, this seems to be what I'm looking for, however, I'm running into errors when unpivoting from my SharePoint list. As soon as I unpivot the columns, I get errors in every column, as displayed.
I tried creating a brand new list, but had the same problems. Perhaps a problem when sourcing from a SharePoint list?
- Anonymous5 years agoNot applicable
Hi JamesCoco ,
How did you execute unpivot step in Power Query Editor? Please review the content in the following link and check whether they can help you resolve the problem.
sharepoint loading error (A value without a type name was found and no expected type is available)
If the above one is not working, please provide your sample pbix file(exclude sensitive data) in order to make troubleshooting and find the solution. Thank you.
Best Regards