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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Getting the same total value for each category

Hi Experts,

 

I am facing issue with one of the measure, 

 

Target_V = CALCULATE(SUM('goal'[targetmoney_base]),ALLEXCEPT(opportunityproduct,opportunityproduct[productfamilylevelaname]))
 
getting same value for each of the category when adding it in my matrix visual. 
 
Please suggest.
 
mmcaccount_1-1718006183006.png

 

3 REPLIES 3
Uzi2019
Super User
Super User

Hi @Anonymous 

yes. it will give you the value by applying ALLEXCEPT(). 

can you pls show case by taking normal table and add all the product columns and targetmoney_base and check share screenshot what value do you need against which product value.???

 

You can do the same thing in excel just random data with all level of hierarchy and show wht data you want to show again each category.

 

share input and expected output..

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Anonymous
Not applicable

Example: I have a table with opportunityProduct and have the A_productfamily, B_productfamily,C_productfamily& D_productfamily as categories and i want to map all the above categories files to my Target value. to get the right values for each product family i tried with All EXCEPT function, which is not working in my DAX logix.

 

Please suggest. 

 

Note: Target value is a measure from a goal table which is not have an direct relationship with OpportunityProduct table.

 

Please help

 

Anonymous
Not applicable

Hi @Anonymous ,

Does the goal table have a field corresponding to “A_productfamily”, “B_productfamily”, “C_productfamily ” & ‘D_productfamily’?

 

If so, try something like this.

Target_V =
CALCULATE (
    SUM ( 'goal'[targetmoney_base] ),
    'goal'[productfamilyfield]
        = SELECTEDVALUE ( 'opportunityproduct'[productfamilylevelaname] )
)

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.