Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
I'm struggling to transform the following data:
so it looks something like the below for each salesperson and each month:
this is where i've got to but i cant seem to isolate the month names:
Solved! Go to Solution.
Hi @JR_Lee ,
1) add a column with the following syntax: "if [Column2] = "Coke[PG 29]" then [Column1] else null
2) Check that new column and fill down values. This will returne a column with the repective months in rows.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @JR_Lee ,
you must do that before the unpivoting.
Either before or after the Promoted Headers step:
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @JR_Lee ,
1) add a column with the following syntax: "if [Column2] = "Coke[PG 29]" then [Column1] else null
2) Check that new column and fill down values. This will returne a column with the repective months in rows.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @ImkeF
Not sure if I have misundestood but when I add the column I get the following (which inclueds the salesperson name)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
126 | |
113 | |
69 | |
59 | |
46 |