Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi All,
Working on calculating the Weightage % for different segments in Power BI, where the formula is supposed to be:
Weightage % = (Segment Level Net Sales / Total Net Sales)
I'm working with a dataset that includes a CY (Current Year) column, Segment, Region and other financial metrics like Growth %, SG&A %, Weightage %, Net Sales and others, under Hierarchy1 column as shown in the attached image below,
The second image is from the Power BI matrix where I'm displaying the data. I’ve created a DAX formula to calculate the percentages, but not sure on how to calculate Weightage % since its formula says (Segment Level Net Sales / Total Net Sales) and 'Net Sales' is also under Hierarchy1 column
The values for all other metrix under 'Hierarchy1' column are coming correct except for Weightage %
The correct values are not shown because of the privacy of client data
Here’s the DAX formula used for the calculation:
CY_Category_PERCENTAGE = VAR _G1 = VAR _G2 = VAR _COND = RETURN _COND |
What additions can be done in DAX to calculate correct values for Weightage % ?
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
User | Count |
---|---|
98 | |
76 | |
76 | |
48 | |
26 |