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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Assenderp
New Member

After adding date table, SUMX no longer shows iterated value per row

Hi,

I am trying to show the value of a measure per date. When I use the date from the same table, it works. When I use the date from the date table, even though they have an active relationship, it doesn't work. See image below. 

Assenderp_0-1662628752083.png

The measure I am using is:

Ongerealiseerde omzet = CALCULATE(SUMX('Table X';'Table X'[amount]);'Table X'[accountnumber]="84001" || 'Table X'[accountnumber]="84003";'tblCalendar'[Date]>NOW()-1)


I would like the measure to work with the date table. The total calculation is correct, it is just not showing it correctly per specific date period.

Thank you for your help!

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

The filter you have in the measure on the date table is overriding the filter from the date in the table visual. Try

Ongerealiseerde omzet =
CALCULATE (
    SUMX ( 'Table X', 'Table X'[amount] ),
    'Table X'[accountnumber] = "84001"
        || 'Table X'[accountnumber] = "84003",
    KEEPFILTERS ( 'tblCalendar'[Date] > NOW () - 1 )
)

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

The filter you have in the measure on the date table is overriding the filter from the date in the table visual. Try

Ongerealiseerde omzet =
CALCULATE (
    SUMX ( 'Table X', 'Table X'[amount] ),
    'Table X'[accountnumber] = "84001"
        || 'Table X'[accountnumber] = "84003",
    KEEPFILTERS ( 'tblCalendar'[Date] > NOW () - 1 )
)

that worked, thank you very much for the explanation and the solution!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors