Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Analitika
Post Prodigy
Post Prodigy

Always show blank in dates

I need always show blanks values by date,

now it show blanks only when whole period in slicer is selected

2020-07-07_105910.png

but if i move slicer, blanks is gone

2020-07-07_110056.png

I have a date slicer which refer to Date[Date],

relations on 'Table'[Date] = Date[Date]

also i have measure 
193 =
CALCULATE (
SUM ( 'Table'[Sum] ),
FILTER (
'Table',
'Table'[State] IN { "on", "edit" }
)
)

1 ACCEPTED SOLUTION

Solved:

 

  1. Create new Table with:
Blank
1
2
3
4
5
6
7
8
9
10
11
12

2. make relation on Date[Month]

3. Make additional measure for blanks

 

194 =
CALCULATE (
SUM ( 'Table'[Sum] ),
FILTER (
ALL('Table'),
'Table'[State] IN { "on", "edit" } &&
ISBLANK('Table'[date])
)
)

 

4. final measure

 

193 =
CALCULATE (
SUM ( 'Table'[Sum] ),
FILTER (
'Table',
'Table'[State] IN { "on", "edit" } &&
'Table'[date]<> BLANK()
)
)
+ [194]

 

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Analitika , why date is blank, because not all dates are there in date table or it is blank in table ?

Try like

193 =
CALCULATE (
SUM ( 'Table'[Sum] ),
FILTER (
'Table',
'Table'[State] IN { "on", "edit" } || isblank('Table'[Date] )
)
)

 

Dates is blanks in a Table, so your example is not work.

 

😕

Solved:

 

  1. Create new Table with:
Blank
1
2
3
4
5
6
7
8
9
10
11
12

2. make relation on Date[Month]

3. Make additional measure for blanks

 

194 =
CALCULATE (
SUM ( 'Table'[Sum] ),
FILTER (
ALL('Table'),
'Table'[State] IN { "on", "edit" } &&
ISBLANK('Table'[date])
)
)

 

4. final measure

 

193 =
CALCULATE (
SUM ( 'Table'[Sum] ),
FILTER (
'Table',
'Table'[State] IN { "on", "edit" } &&
'Table'[date]<> BLANK()
)
)
+ [194]

 

harshnathani
Community Champion
Community Champion

Hi @Analitika ,

 

You probably need a dynamic end date to your Calendar Table.

 

Have a look at this video.

 

https://www.youtube.com/watch?v=qdhsq23cQhg

 

Regards,

Harsh Nathani

Appreciate with a Kudos!! (Click the Thumbs Up Button)

Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.