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.
Hello all, I need your help, I have a table with values per month and each month is in a different column, with the header as the first day of the month just as reference for that month. What I need is :
-a not manual way to divide that between the total number of days of that month. (that is simple, I know)
-then with the value per day, instead have the columns, create a row per each day and assign the value to each date.
I made some manual examples:
Doing that manually will take a lot because I have 1,000 rows in the current db so the final rows will be like 366,000 rows just for 2024
IMPORTANT= I am sending this from Excel to SQL Server and then to PBI, so I know that here we have a lot of masters in PBI, but if anyone have any idea on any of the 3 I will appreciate it so much
Solved! Go to Solution.
I attached a .pbix file showing the steps and solving the problem for you in Power Query.
1) unpivot columns to the right of Col3
2) Add Days in Month column
3) Divide value by Days in Month
4) Add "End of Month"
5) Add List of values between start of month and end of month.
6) Expand the list
//// Mediocre Power BI Advice, but it's free ////
I attached a .pbix file showing the steps and solving the problem for you in Power Query.
1) unpivot columns to the right of Col3
2) Add Days in Month column
3) Divide value by Days in Month
4) Add "End of Month"
5) Add List of values between start of month and end of month.
6) Expand the list
//// Mediocre Power BI Advice, but it's free ////
Thanks for the response, almost there but still missing each row for each day of the month
I have 1 column for each month (12 months-12 col), I need to convert that into 1 row per day (366 days-1 col).
I edited my original response to include a new .pbix file with the solution I believe you are looking for.
It fills in each row with every date in the month as a new column, as well as the [value] / [Days in Month] column.
THAAANK YOU SO MUCH, worked perfectly.
Have a great day!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
102 | |
74 | |
42 | |
39 | |
31 |
User | Count |
---|---|
161 | |
87 | |
64 | |
46 | |
42 |