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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
MikeRu
New Member

Custom total and subtotal

Hellow.

I have dax in calc clumn value

budget =
VAR _ret = CALCULATE([Сумма ]/1000, 'ovip_fact_budget'[measure] = "budget " ,'ovip_fact_budget'[data_type] = "bud")
VAR _show = [isShow]
return (SWITCH(TRUE(),
_show= "other", 0,
_ret)
)
When I try to show total in table I get value error value. Because Summaraze works on both conditions in formula.
Is there any way to add some custon total and subtotal ?
3 REPLIES 3
Mahesh0016
Super User
Super User

@MikeRu ,

 

budget =
VAR _ret = CALCULATE([Сумма ]/1000, 'ovip_fact_budget'[measure] = "budget " && 'ovip_fact_budget'[data_type] = "bud")
VAR _show = [isShow]
return (SWITCH(TRUE(),
_show= "other", 0,
_ret)
)

#################
budget =
VAR _ret = CALCULATE([Сумма ]/1000, 'ovip_fact_budget'[measure] = "budget " || 'ovip_fact_budget'[data_type] = "bud")
VAR _show = [isShow]
return (SWITCH(TRUE(),
_show= "other", 0,
_ret)
)


>> Try both formula , i hope helps . 
>> If this post helps, please consider accept as solution to help other members find it more quickly.

Thanks for replay.

But I have error in this caseОшибка 26.12.22_12.27.24.png

@MikeRu Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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