Forum Discussion
Funnel Chart filtered by month
Hi, I am a bit new to PowerBI but not to charts, dashboards in general. I have the following table format:
| Date | Accessed | Purchased | Paid |
| 01/01/2018 | 526 | 91 | 50 |
| 02/01/2018 | 823 | 164 | 74 |
| 03/01/2018 | 930 | 218 | 90 |
| 04/01/2018 | 2206 | 183 | 80 |
| 05/01/2018 | 1667 | 135 | 57 |
| 06/01/2018 | 1586 | 117 | 59 |
| 07/01/2018 | 726 | 123 | 74 |
| 08/01/2018 | 853 | 144 | 79 |
| 09/01/2018 | 661 | 185 | 105 |
| 10/01/2018 | 797 | 244 | 106 |
| 11/01/2018 | 877 | 243 | 91 |
| 12/01/2018 | 901 | 190 | 92 |
| 13/01/2018 | 1594 | 185 | 84 |
| 14/01/2018 | 3081 | 201 | 95 |
| 15/01/2018 | 1936 | 244 | 138 |
| 16/01/2018 | 1380 | 274 | 154 |
| 17/01/2018 | 2118 | 451 | 240 |
| 18/01/2018 | 1485 | 454 | 247 |
And so on for the whole year.
I am building a dashboard with sales data filtered by months, days, etc.
So I wanted to have funnel that has the stages Accessed, Purchased and Paid, showing the sum for each stage according to the a date filter I selected (either for the chart or following the whole dashboard date filter).
I tried many different ways but either I can only create a chart when the data is in this format:
| January | February | March | |
| 1-Accessed | 37327 | 28585 | 19307 |
| 2-Purchased | 5714 | 5218 | 4876 |
| 3-Paid | 2779 | 2478 | 2381 |
And then I cannot filter it by dates, or I just can't make the funnel work.
How can I make it work?
Thanks
Decio
1 Reply
- AnonymousNot applicable
HI zeitgeist,
I'd like to suggest you do 'unpivot columns' operations on your table, then you can summary these records as your wish.
Full query:
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("VVFtDkMhCLvL+71k8qVwlmX3v8akuI2XGDRphba8Xteg5z48yK/HZTx3DcrnuN6PDXODnWVXmrrr0sKl4SFjV673+a8NZx7Znzzb+CFYI9CcKy+xVLCKMDvBHB0oaRZFWI2w4IAg9CvRuwWDBYWF8z8aPidBYQqgYSDQ6AMiRzMa0LYDQs/QVxGkkgTeQ4yBCZFRBRcuN4uhPwleFqinKMOzA6NPHIm3FEPmX6N4MW4ximNTCww7Q3qOTLjUMEprV9STJIVCNQVjL+v9AQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Date = _t, Accessed = _t, Purchased = _t, Paid = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type date}, {"Accessed", Int64.Type}, {"Purchased", Int64.Type}, {"Paid", Int64.Type}},"en-GB"), #"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Changed Type", {"Date"}, "Attribute", "Value"), #"Renamed Columns" = Table.RenameColumns(#"Unpivoted Columns",{{"Attribute", "Type"}}) in #"Renamed Columns"
Regards,Xiaoxin Sheng