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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

Date Slicer Making Cards "Blank"

Please see link to screen video demonstrating the issue:

Screen Recording

 

Thank you for any advice you can provide!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hey @Anonymous 

I tested this last night & this AM. 

 

Last night I was at home & tested on the August 2019 PBI Desktop release. I didn't get the results I was looking for when slicing by date. I used the date field from my 'date table.' When I sliced by date, it would pull in other dates from the related table (the rev & expense table).

 

This AM (at work), I tested on the June 2019 PBI Desktop and got the results I expected; I sliced on the dates in my 'date table.' I tested the margin calculation two different ways: (1) in a table that had both rev & expense #s & (2) where rev & expense #s were in separate tables.

 

I know this doesn't answer your question, but I just wanted to share my findings with you. Your original measure worked for me on the June 2019 release, but in the August 2019 release the slicer didn't produce results I expected. 

 

HERE is a link to my testing (done this AM).

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hey @Anonymous 

I like the vid!

Are the values displayed on the cards measures? If so, can you possibly post the measures used for at least one of them?

Anonymous
Not applicable

Hey, ccapowerbi!

 

Thanks for your response!  I have two measures -- the net card and the realized hourly rate card.  However, one quick note, even before I added those measures, the revenue and hours worked cards still reacted the same as they are in my video ... where they go blank.

 

Net =
SUM('Revenue'[Revenue]) - SUM('Expenses'[Sub-Agent Expenses])
 
Realized Hourly Rate =
DIVIDE([Net], SUM('Time'[Hours Worked]))
 
I also checked the relationships and formatting of the columns -- both seem to be fine.
 
Thanks again!
Anonymous
Not applicable

@Anonymous 

 

I'm working right now, so I can't test. 

 

Can you wrap your SUM expressions in CALCULATE?

 

Net =

CALCULATE(SUM('Revenue'[Revenue])) - CALCULATE(SUM('Expenses'[Sub-Agent Expenses]))
Anonymous
Not applicable

No problem!  I changed the measures to include CALCULATE like you demonstrated.  Unfortunately that didn't fix the "blank" issue.

Anonymous
Not applicable

@Anonymous 

 

With measures, if BLANK appears & you know there isn't numerical data for the specified time period you can simply add +0 to the end of your measure to show 0 instead of BLANK.

Are you sure there are numerical data for your specified time period?

Anonymous
Not applicable

Yup -- I'm sure there is data within that range!  If I make date slicers using the fields that this one date slicer is related to, they all work as they should, but as soon as I try to control them all with one date slicer, then they all go blank.  Odd!

Anonymous
Not applicable

Hey @Anonymous 

I tested this last night & this AM. 

 

Last night I was at home & tested on the August 2019 PBI Desktop release. I didn't get the results I was looking for when slicing by date. I used the date field from my 'date table.' When I sliced by date, it would pull in other dates from the related table (the rev & expense table).

 

This AM (at work), I tested on the June 2019 PBI Desktop and got the results I expected; I sliced on the dates in my 'date table.' I tested the margin calculation two different ways: (1) in a table that had both rev & expense #s & (2) where rev & expense #s were in separate tables.

 

I know this doesn't answer your question, but I just wanted to share my findings with you. Your original measure worked for me on the June 2019 release, but in the August 2019 release the slicer didn't produce results I expected. 

 

HERE is a link to my testing (done this AM).

Anonymous
Not applicable

Interesting -- thanks for doing some tests and sending over your file!  That's exactly how I anticipated it would work.  I wonder if it's a bug in the August release...

 

Thanks again for your time!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors