Forum Discussion
How to include null values in filter visualization?
- 7 years ago
Hi ajames95
Leave main data table and calendar table no relationship
Create a measure
Measure = VAR slectedmo = SELECTEDVALUE ( 'calendar'[year-month] ) VAR y_m = FORMAT ( MAX ( 'Table'[date] ), "yyyy-mm" ) RETURN CALCULATE ( SUM ( 'Table'[value] ), FILTER ( 'Table', slectedmo = y_m ) )Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi ajames95
Leave main data table and calendar table no relationship
Create a measure
Measure =
VAR slectedmo =
SELECTEDVALUE ( 'calendar'[year-month] )
VAR y_m =
FORMAT ( MAX ( 'Table'[date] ), "yyyy-mm" )
RETURN
CALCULATE ( SUM ( 'Table'[value] ), FILTER ( 'Table', slectedmo = y_m ) )
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- ajames957 years agoFrequent Visitor
Hi Maggie,
I only have one table -
1 Year/Month = FORMAT('Table'[Logged Date],"YYYY-MM")- v-juanli-msft7 years agoCommunity Support
Hi ajames95
There is no direct way to slove your problem, so i provide a workaround.
Please create a calendar table:
New Table-> enter this formula
calendar = ADDCOLUMNS(CALENDARAUTO(),"year-month",FORMAT([Date],"yyyy-mm"))
Then follow my methods in the previous post.
Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.