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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Faracla
Frequent Visitor

Calculated Column not returning back grand total in a table

Dear all
i have a problem with a calculated column used in table not showing the total.
The column is"LoadWeek*LaneNumber", in this case i woudl expect to have a total of 59, while shows nothing.
The formula is :

"LoadWeek*LaneNumber =
VAR Total = DIM_Tenders[TotalLoadsWeek]
VAR Percentage = dim_Tenders[LanePercentNoBlank]
VAR Output = Total*Percentage
RETURN Output"

I have tried different thing but I do not get what i want
any suggestions?
 
 
2022-11-30_12-18-41.png



2 REPLIES 2
Faracla
Frequent Visitor

@v-zhangti 
i tried your way but unfortunately the result is not the expected one.
i forgot to mentions that i have a filter on the visual, one on the page and also one on monthyear and year week as per screen attached
perhaps is related to filters?2022-12-01_14-52-50.png

v-zhangti
Community Support
Community Support

Hi, @Faracla 

 

I did my best to restore your data, check out the methods below.

Measure = 
IF (
    HASONEVALUE ( DIM_Tenders[ID] ),
    SUM ( DIM_Tenders[LoadWeek*LaneNumber] ),
    SUMX ( DIM_Tenders, [LoadWeek*LaneNumber] )
)

vzhangti_1-1669860413093.png

IF (HASONEVALUE()) can control the output of Total.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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