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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Rachel_tsao
Frequent Visitor

How to show Zero when there is no relation in drilldown level

Hi,Can someone help me to let Customer Target Value (in red frame) show "Zero" in Project level breakdown?

Current :

Rachel_tsao_4-1682074740168.png

Expecting result:

Rachel_tsao_6-1682075056175.png

 

 

Backgroud: I have one customer with multiple project, but the Target is only in custoemr level, so  I would like to compare the Customer Target vs Project total value in one table with project breakdown, but do not show the target value in project level.

Relationship setting:

Rachel_tsao_3-1682074670774.png

Thank you !

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @Rachel_tsao ,

 

You can try

=
//if project returns one single value then 0 otherwise the target
IF (
    HASONEVALUE ( table[project] ),
    0,
    [target measure]
)

 

or

=
IF (
    HASONEVALUE ( table[customer] ),
    [target measure],
    0
)

but the first one might be what you're looking for





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

1 REPLY 1
danextian
Super User
Super User

Hi @Rachel_tsao ,

 

You can try

=
//if project returns one single value then 0 otherwise the target
IF (
    HASONEVALUE ( table[project] ),
    0,
    [target measure]
)

 

or

=
IF (
    HASONEVALUE ( table[customer] ),
    [target measure],
    0
)

but the first one might be what you're looking for





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.