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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
MP_123
Microsoft Employee
Microsoft Employee

calculate the total

hi,

i have this chart:

 

Capture12.PNG

 

i want to add a calulcate measure the calculate the  total clicks (values in line) 

i mean, in the graph the total is divided by the time, i want to add tool tip to show the total amount (static for all points)

i wroth this:

Total Positive Clicks = calculate(sum(Query1[CardPositiveClicks]),ALL(Query1[Time]))

but when i added this to the tool tips, it's do filtered by time.

 

what am i doind wrong? thanks!

7 REPLIES 7
BhaveshPatel
Community Champion
Community Champion

CALCULATE(…, ALL(Table) ) will remove filters not only from Table but also from its related tables, while ALL(T[Column]) doesn’t have an impact on tables related to Table. As a result, the value of CALCULATE(…, ALL(…, T[C])) is affected only by the slice on T[Column] as slices on other columns have been masked by columns returned from ALL.

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

@BhaveshPatel thank you but i don't understand your answer.

i want it to keep the other slicers of the report, i just want it to ignore the filter Time (the Chart Axis) so it won't calculate to each time period, but the sum of all.

and then, to add it as a tool tip

 

 

thanks!

You can use ALLEXCEPT(Query1[Time]). This will ignore the filters on the Time column.

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

actually it doesn't work. All(time) it's the right way.

the result is as it should be when i slice on the time, but when i add it to the chart with the time on the axis it doesn't work.

Hi @MP_123,

Slicer is used to filter rows in table. When you create a slicer, and connect it to the chart. The slicer will filter the whole chart, rather than part of it.

Best Regards,
Angelia

@v-huizhn-msft

thanks!

 

how do you suggest to add this calulcated measure to the chare, and to show the constant value of clicks? regardless the  time?

 

thanks!

Hi @MP_123

The value in line chart are 12am-5am, 5am-8am, 8am-11am and so on, right? If it is, you should use ALLEXCEPT posted by @BhaveshPatel . You’d better create a measure using the following formula.

Total Positive Clicks = calculate(sum(Query1[CardPositiveClicks]),ALLEXCEPT(Query,Query1[Time]))

Create a slicer including Time, when you select one value in Time column, it will display the value bar and line chart.

Thanks,
Angelia

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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