Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi,
I have a table with 4 columns.
I want to have "Completed or Stat date" column as date slicer and my table visual should show the rows with the blank date (irrespective of date slicer selection) along with the rows falling in the selected date.
For example:
If I filter by dates 1 - June-21 to 31-Dec-21 in "Completed or Stat date".
My table should show all the rows that are in the date range (1 - June-21 to 31-Dec-21) and also the row items that have a blank value in the "Completed or Stat date".
Thanks,
Alex
Solved! Go to Solution.
I would do the following.
1) Create a disconnected date table (if Power Bi puts a relationship in delete it)
Date = CALENDARAUTO(12)
2) Add a measure to your table (I called mine Task):
Date Filter =
VAR SelectedDates =
CALCULATETABLE (
VALUES( Task[Completed or Stat Date]),
TREATAS ( VALUES ( 'Date'[Date] ), Task[Completed or Stat Date] )
)
VAR RowsToInclude =
FILTER (
VALUES( Task[Completed or Stat Date] ),
SelectedDates || ISBLANK( Task[Completed or Stat Date] )
)
VAR ShowDate = INT ( NOT ( ISEMPTY ( RowsToInclude ) ) )
RETURN
ShowDate
3) Use the date column from your new date table in the slicer.
4) In your table visual put the "Date Filter" measure into the visual filter pane and set it to "Is 1"
I'm getting I think your desired results:
Had the same issue. Your solution works! Thank you
I would do the following.
1) Create a disconnected date table (if Power Bi puts a relationship in delete it)
Date = CALENDARAUTO(12)
2) Add a measure to your table (I called mine Task):
Date Filter =
VAR SelectedDates =
CALCULATETABLE (
VALUES( Task[Completed or Stat Date]),
TREATAS ( VALUES ( 'Date'[Date] ), Task[Completed or Stat Date] )
)
VAR RowsToInclude =
FILTER (
VALUES( Task[Completed or Stat Date] ),
SelectedDates || ISBLANK( Task[Completed or Stat Date] )
)
VAR ShowDate = INT ( NOT ( ISEMPTY ( RowsToInclude ) ) )
RETURN
ShowDate
3) Use the date column from your new date table in the slicer.
4) In your table visual put the "Date Filter" measure into the visual filter pane and set it to "Is 1"
I'm getting I think your desired results:
Works perfectly as expected. Thank you so much 🙂
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
14 | |
10 | |
7 |