The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a table in Power Bi Desktop.
The table has 4 columns:
I'm trying to create a dynamic calculation to find what mix is of units of Category by Channel by month.
Essentially, each month and each channel, the Category mix should total 100%.
Then the category underneath would be say 30% of the total channel.
How do i do that?
Additional notes - I've created a "Calculations folder" as I like to keep the Power Bis neat, which I think complicates the formula?
Thanks
Chris
Solved! Go to Solution.
Hi, @Chrisjm15
Create 2 calculated column. One for total unit another for mix. Sample DAX,
Total Units = CALCULATE(SUM('YourTableName'[Units]), ALLEXCEPT('YourTableName', 'YourTableName'[Month], 'YourTableName'[Channel]))
2nd calculated column
Category Mix = 'YourTableName'[Units] / 'YourTableName'[Total Units]
Proud to be a Super User!
Hi, @Chrisjm15
Create 2 calculated column. One for total unit another for mix. Sample DAX,
Total Units = CALCULATE(SUM('YourTableName'[Units]), ALLEXCEPT('YourTableName', 'YourTableName'[Month], 'YourTableName'[Channel]))
2nd calculated column
Category Mix = 'YourTableName'[Units] / 'YourTableName'[Total Units]
Proud to be a Super User!