Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi there,
I am trying to unpivot data matrix using pwoer query but the data calculation is not only using summraize but also average since the value have different value format, iie. absolute number and percentage. Is it possible to apply this purpose using unpivot column in power query?
Here is the data matrix example:
I would like to convert (unpivot) and visualize the table into this:
Kindly share your thoughts on this.
Thank you in advance!
Solved! Go to Solution.
Hi @Anonymous
Please try
Total Target (Switch) =
IF (
CONTAINSSTRING ( MAX ( 'Table'[Indicator] ), "%" ),
AVERAGEX ( VALUES ( 'Date'[YearMonth] ), [Total Target] ),
SUMX ( VALUES ( 'Date'[YearMonth] ), [Total Target] )
)
Same for total actual
Hi @Anonymous
Please try
Total Target (Switch) =
IF (
CONTAINSSTRING ( MAX ( 'Table'[Indicator] ), "%" ),
AVERAGEX ( VALUES ( 'Date'[YearMonth] ), [Total Target] ),
SUMX ( VALUES ( 'Date'[YearMonth] ), [Total Target] )
)
Same for total actual
@Anonymous , I am assuming the first one is the source
How to Deal with Double Headers in Power BI | Free Power BI Tutorials: https://youtu.be/1e16oHv9kTk
Hi Amit,
Thanks for sharing your thought. However the steps is still not achieve what I need to perform different calculation type per-each category/indicator As you may see in the scond table.
User | Count |
---|---|
21 | |
14 | |
11 | |
8 | |
5 |
User | Count |
---|---|
24 | |
22 | |
20 | |
15 | |
10 |