Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi experts,
I have a matrix visual as below with values in M3.
I would like to get a subtotal% split for each supplier region name.
Output measure expected as per column "M3% of Subtotal"
can anybody help with a DAX?
PS: Data is from datawarehouse model in which each of these fields are from different cubes like Supplier, Destination, Transaction type and Sales (M3).
Solved! Go to Solution.
https://community.fabric.microsoft.com/t5/Desktop/Multiple-AllEXCEPT/td-p/2451860
please check this link,
# Of Job Order ID's (Specific Purpose) = if( max('Job Stage (with Total Vacancies)'[Value])="Total Vacancies", CALCULATE( [# Of Job Order ID's], ALLEXCEPT( 'FACT_JobCandidate-Current_LastWeek_Combined', 'FACT_JobCandidate-Current_LastWeek_Combined'[Job Stage], 'FACT_JobCandidate-Current_LastWeek_Combined'[Source Period] ), ALLEXCEPT( 'Cost Centre', 'Cost Centre'[Cost Centre] ) ), CALCULATE( [# Of Job Order ID's], USERELATIONSHIP('Job Stage (with Total Vacancies)'[Value],'FACT_JobCandidate-Current_LastWeek_Combined'[Job Stage]) ) )
the columns destination title and transaction type are from different tables linked within the model.
May be thats why dax formula is not accepting when I add the 2 columns. Supplier region name is from table Supplier.
any work around for such scenario?
thanks
https://community.fabric.microsoft.com/t5/Desktop/Multiple-AllEXCEPT/td-p/2451860
please check this link,
# Of Job Order ID's (Specific Purpose) = if( max('Job Stage (with Total Vacancies)'[Value])="Total Vacancies", CALCULATE( [# Of Job Order ID's], ALLEXCEPT( 'FACT_JobCandidate-Current_LastWeek_Combined', 'FACT_JobCandidate-Current_LastWeek_Combined'[Job Stage], 'FACT_JobCandidate-Current_LastWeek_Combined'[Source Period] ), ALLEXCEPT( 'Cost Centre', 'Cost Centre'[Cost Centre] ) ), CALCULATE( [# Of Job Order ID's], USERELATIONSHIP('Job Stage (with Total Vacancies)'[Value],'FACT_JobCandidate-Current_LastWeek_Combined'[Job Stage]) ) )
@logistics_power do you have a sample dump or pbix that you can share for me to review it?
In the allexcept part you have to add other 2 columns as well, like in your case destination title and transaction type.
Unfortunately not. I dont have sample pbix.
can you tell me how to add the other 2 columns. I ll try that solution.
thanks
Hi Raji_n
for some reason I am seeing 100% on each row.
I tested the part CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[Region])) and it is giving me the same result as the value M3 instead of the subtotal. Hence percentage is 100%
Any idea what could be causing it?
@logistics_power if my solution is helpful, please mark it as answered, so that other users can find it easily.
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
12 | |
10 | |
6 |