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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MCacc
Helper IV
Helper IV

CALCULATE doesn't work with measure in a table

Hello, 

 

I don't know why but my measure returns blank.

 

CALENDAR is a table made of distinct values of my TABLE_FACTS[REFERENCE_DATE]. I then use the field DATE_FILTER in a slicer.

 

I also have two additional filters, that come from two dummies tables, wich are basically the distinct values of two dimensional columns I have in my TABLE_FACTS.

 

This is my measure:

VAR DATE_SELECTED = SELECTEDVALUE(CALENDAR[DATE_FILTER]

 

RETURN 

 

CALCULATE(SUM(TABLE_FACTS[VALUE]), 

         FILTER(TABLE_FACTS, TABLE_FACTS[REFERENCE_DATE] = DATE_SELECTED)

)

 

This measure is used in a table, and in this table I have three other dimension. 

 

The measure doesn't work either if the tables are in a relationship or not. I also tried to use ALL(TABLE_FACTS) but it doesn't work.

 

What I getting wrong?

 

Thanks for your help

1 REPLY 1
PhilipTreacy
Super User
Super User

Hi @MCacc 

 

I suspect it's something to do with the way your are working with the dates.  You should be using a proper date table.

 

Please supply your file so I can see the data, hard to figure this out without seeing the data.

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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