Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have sample data and i want show the data based on category.
Please let me know how can I do that. Apprecaite any help.
Solved! Go to Solution.
Hi @Anonymous ,
We can use the first row as header and do some transformations in Power Query Editor to meet your requirement.
1. Use first row as headers.
2. Then create a conditional column.
3. At last delete the column 2 and column 3.
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that we have shared?
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BTW, pbix as attached.
Hi @Anonymous ,
How about the result after you follow the suggestions mentioned in my original post?
Could you please provide more details or expected result about it If it doesn't meet your requirement?
If you've fixed the issue on your own please kindly share your solution. If the above posts help, please kindly mark it as a solution to help others find it more quickly.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
We can use the first row as header and do some transformations in Power Query Editor to meet your requirement.
1. Use first row as headers.
2. Then create a conditional column.
3. At last delete the column 2 and column 3.
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that we have shared?
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BTW, pbix as attached.
@Anonymous , If income and expense are two measures
ass a new measure
sumx(Table, if(max(Table[Type]) = "Operating Expense", [Expense][Income])
Can you share sample data and sample output in table format?
Category type | INCOME | EXPENSE | |
Operating Expence | |||
ROU Asset | 0 | 0 | |
Acc Deprn - ROU Asset | 0 | 0 | |
Berenberg Bank - USD | 0 | 0 | |
Prepayments (others) | 0 | 0 | |
Time charter expense (TC IN) | 0 | 58000 | |
Operating Income | |||
Time Charter Income | 48000 | 0 | |
Brokers Commission | 0 | 0 | |
Owners payable account | 0 | 0 |
EXPECTED | ||
Operating Expence | Expected Values | |
ROU Asset | 0 | |
Acc Deprn - ROU Asset | 0 | |
Berenberg Bank - USD | 0 | |
Prepayments (others) | 0 | |
Time charter expense (TC IN) | 58000 | |
Operating Income | ||
Time Charter Income | 48000 | |
Brokers Commission | 0 | |
Owners payable account | 0 |
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@AllisonKennedy We allready have income and expenses cost category, in our requirement we have to show income and expense data for corresponding cost category in a single column.
Thanks in advance.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
118 | |
101 | |
71 | |
61 |