Forum Discussion
Filter with empty rows
Hi PBI Community,
I'm new in Power BI and I'm struggling with a table.
It's a bit complex (for me :P) and I'd really appreaciate any guidance or help.
I have the table below. I want to keep the topics that are in a specific date period and the topics that are empty.
I need to:
- keep the topics that are between "2weeks before today and 2weeks after today"
- keep the topics that are empty i.e have no next milestone (like topic B)
- if topics include both empty fields and text fields, then keep only the text fields.
The end result should look like this:
My first thought was to calculate the difference between today-next date and limit the period with a slicer. That gives me the below result, but how can I remove the empty row from Topic A?
Diff Today-NextDate = DATEDIFF(TODAY(),'Table'[Next Date],DAY)Any ideas?
Thanks
10 Replies
- parry2kSuper User
stacey I think where the issue, can you describe the logic why you are getting C and D in your result set (on your original post)
- keep the topics that are between "2weeks before today and 2weeks after today"
- keep the topics that are empty i.e have no next milestone (like topic B)
- if topics include both empty fields and text fields, then keep only the text fields.
- staceyFrequent Visitor
Hi,
C and D don't include next key milestones dates between the requested timeline "2weeks before today and 2weeks after today".The idea is to still show these topics even if they don't include the milestones.
Thanks