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

Divide specific values in matrix visual with total value

Hello Community,

I have a matrix. I want to calculate weigth for all the months by dividing it with total value.

 

The dax i am using is  

bgtw = DIVIDE(CALCULATE(SUM(LE[BU AM]),ALLSELECTED()),[Total_BU_AM_Measure]) but the values are not coming correctly.
 
For Eg Jan must return me -1259/13221.61 = -0.09 
 
Any help would be much appreciated. Thanks

Capture.PNG
1 ACCEPTED SOLUTION
Anonymous
Not applicable

The above mentioned issue was resolved. The dax used was allexcept and in the dax i mentioned all the column names which i used in the slicers. Hope this helps anyone else. Cheers!!!!!!

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

The above mentioned issue was resolved. The dax used was allexcept and in the dax i mentioned all the column names which i used in the slicers. Hope this helps anyone else. Cheers!!!!!!

Pragati11
Super User
Super User

Hi @Anonymous ,

 

Can you try modifying your DAX to the following:

bgtw = DIVIDE(

                         CALCULATE( SUM(LE[BU AM]) ), [Total_BU_AM_Measure]

                        ) 

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Hi Pragati,

 

this gives me value 1 in all the columns

 

Capture1.PNG

Hi @Anonymous 

 

you might consider creating pbix file that will contain some sample data (remove the confidential info), upload the pbix to onedrive for business and share the link to the file. Please do not forget to describe the expected results based on this sample data.

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Anonymous
Not applicable

No issues, I want the result fast what you suggested will take a lot of time. thanks for the help

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.