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
wouterDefour
Frequent Visitor

ALL function not applied on second visual

Hello,

 

I'm having some difficulties with the ALL() function.

My datasets looks like:

RemarkDayTonnage
a1530
x20
y30
z20

 

What I want, is the tonnage to be repeated over all rows:

 

RemarkDayTonnage
a1530
x2530
y3530
z2530

Therefore, I added following measure: CALCULATE(SUM( Table[Tonnage] ), ALL(Table[Remark] ))

 

It works fine at first sight:

a.PNG

 But when selecting a Remark on one visual, I get:

b.PNG

On the selected visual, the tonnage is still correct, but on the second visual, the formula fails.

It looks like the ALL-function is not applied anymore on the second visual.

 

Any help would be appreciated, how I could accomplish this.

 

Thanks!

3 REPLIES 3
selimovd
Super User
Super User

Hey @wouterDefour ,

 

do both visuals contain exactly the same fields from the same tables?

Are all the fields also from the same table or are you using dimensional and fact tables?

 

Best regards

Denis

Hello @selimovd ,

 

Both visuals are identical ( I copied them).

There is only one table involved, with the corresponding fields.

 

It has something to do with the bussiness behind.

Some remarks occur at a date, where there is no tonnage.

 

the tonnage are >0 on day 6 and 16. But some remarks have no records on those days.

eg, remark "Griffes Diverses" below only occurs on day 26:

c.PNG

 

It looks like the second visual is also filtered according to the date, although I did not select the date.

 

Thanks for your interest!

I found the cause:

I have a date slicer on the PowerBI report. When this date slicer is used (does not select "all"), even thought, the way it filters is not relevant to the report, the other visual are calculated in a wrong way.

 

I managed to find a work around by making a new date table, linking this in the model and use a slicer on this new table instead of a slicer on the date in the main table.

 

It works, but I don't understand why. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.