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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
QwertyMartijn
Helper II
Helper II

Blank graph when incorporating date table

Hi guys,

 

I have the following issue: I wrote my measure, but when i put a date table date on the x-axis, the table tuns blank. I know it has to do with my measure, and that somewhere in there is should refer to the date table, but i'm not seeing it.

 

QwertyMartijn_1-1685601899464.png

 

 

I used this code:

 
CALCULATE(COUNT(Herstelverzoeken[Dossieritem]),
FILTER(herstelverzoeken, Herstelverzoeken[Dossieritemcode] = "63"))

 

5 REPLIES 5
QwertyMartijn
Helper II
Helper II

Update: it was as simple as: the date in my herstelverzoeken was formatted as date + time in the power query. Thanks for the responses!

data_freak
Regular Visitor

Hello @QwertyMartijn 

 

I think you need to make sure that your measure considers the relationship between the "Herstelverzoeken" table and the date table. You can do this by using the appropriate column from the date table in your measure. Here's an updated version of your code that incorporates the date table:

CALCULATE(

    COUNT(Herstelverzoeken[Dossieritem]),

    FILTER(

        Herstelverzoeken,

        Herstelverzoeken[Dossieritemcode] = "63"

            && RELATED('DateTable'[Date]) = MAX('DateTable'[Date])

    )

)

Please note that you need to replace 'DateTable'[Date]’ with the actual column name from your date table.

Now I assume that there is a relationship between the "Herstelverzoeken" table and the date table based on a common column (e.g., a date column). If such a relationship doesn't exist, you may need to establish it using Power BI's relationship editor.

Try using this updated code, and hopefully, it resolves the issue with the table turning blank when you put a date table on the x-axis.

 

If this has solved your problem, kindly mark my post as solution.

Cheers

DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

Check your date table has a relationship to the Herstelverzoeken table in model view.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Hi,

 

It does. Thought of that at first too.

 

QwertyMartijn_0-1685604035793.png

 

Strange, as long as it's connected to a date field there shouldn't be an issue.

 

Things i'd try next:

 

Might sound really simple but have you tried deleting the visual and readding it?

Does the date field have data in?

Are there any visuals that the date field work in? 

 

If you still have no luck, is there any way you can share the PBIX file?

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors