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
Anonymous
Not applicable

Need Help with a Measure Formula

Hi All,

 

I need help with a measure formula.

 

Capture.PNG

 

The Formula for Channel Mix is (Channel Volume Share AC -  Channel Volume Share Base)* (NR/hL Base - Channel Value/hL Base)*Channel Volume AC.

All of the above mentioned columns are measures.

 

At a total level (Channel Volume Share AC -  Channel Volume Share Base) is equal to 0 and (NR/hL Base - Channel Value/hL Base) is also equal to 0, but at the row level Channel Mix values are connect.

 

Is there way to write a measure formula to add total even though at the total level due to the calculations the value is 0.

 

Thanks in advance.

Kuber Kumar

 

 

1 ACCEPTED SOLUTION
v-xulin-mstf
Community Support
Community Support

Hi @Anonymous

 

What your expected output?

You can use HASONEVALUE to define calculation logic of total.

Try measure as:

 IF(
    HASONEVALUE(Table[column]),
    measure,
    total
)
 

 

Best Regards,
Link

 

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

View solution in original post

2 REPLIES 2
v-xulin-mstf
Community Support
Community Support

Hi @Anonymous

 

What your expected output?

You can use HASONEVALUE to define calculation logic of total.

Try measure as:

 IF(
    HASONEVALUE(Table[column]),
    measure,
    total
)
 

 

Best Regards,
Link

 

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

amitchandak
Super User
Super User

@Anonymous , You have to try a measure like

new 001 channel Mix =sumx(Summarize(Table, Table[country], Table[channel], "_1", [001 channel Mix]), [_1])

 

https://www.youtube.com/watch?v=ufHOOLdi_jk

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.