Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Dear all,
I have a source data with below information and i want to represent column wise categorical total sales representaion
any suggestions:
suggest the solution in table visual:
Source:
Supplier Name | Total Sales |
Category | 2000 |
Product | 4000 |
Segment | 5000 |
Manufacturer | 6000 |
Output:
Date | Category | Product | Segment | Manufacturer |
1/1/2000 | 2000 | 4000 | 5000 | 6000
|
Regards,
Rajendra
Solved! Go to Solution.
Your expect Output:
Date | Category | Product | Segment | Manufacturer |
1/1/2000 | 2000 | 4000 | 5000 |
6000 |
We can see Date column in the result you want but we couldn't find Date column in your sample. So you need to add a Date column in your sample.
Then select Supplier Name column and use Pivot function.
I suggest you to transform your table by Power Query, dax will be complex when transform a table.
For reference: Power BI DAX Tutorial: How to PIVOT Data Using DAX
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@rajendraongole1 , I recommend to use the Pivot Table from Power Query to get the best output. But if insist to do using DAX so here is the answer. You need to a create new Table and enter DAX like this:
thank you @VahidDM
expecting this logic to implement using dax function?
any possiblities?
I tried with pivot but the out put values not getting as expected.
Your expect Output:
Date | Category | Product | Segment | Manufacturer |
1/1/2000 | 2000 | 4000 | 5000 |
6000 |
We can see Date column in the result you want but we couldn't find Date column in your sample. So you need to add a Date column in your sample.
Then select Supplier Name column and use Pivot function.
I suggest you to transform your table by Power Query, dax will be complex when transform a table.
For reference: Power BI DAX Tutorial: How to PIVOT Data Using DAX
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
See these links:
https://community.powerbi.com/t5/Community-Blog/Pivot-your-Data-using-Power-Query/ba-p/224019
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
98 | |
78 | |
66 | |
53 |
User | Count |
---|---|
139 | |
100 | |
95 | |
85 | |
63 |