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.
Hello,
Could you please help me to create a column where the below line would be divided into two. The media was running across two weeks, so what I need to get one line week_commencing 13.03.23, duration 5 and second line would have week_commencing 20.03.23, duration 2. I do have sell cost per day column in the table as well if that would help
Hope this makes sense.
Thanks,
Zuzana
Solved! Go to Solution.
Hi @ZuzanaK ,
If I understand correctly, the cost value needs to be divided by 2 if the date spans two weeks. Am I right? If yes, you can create a calculated column as below to get it:
Column =
DIVIDE (
'Table'[sell cost],
WEEKNUM ( 'Table'[End Date], 2 ) - WEEKNUM ( 'Table'[Start Date], 2 )
)
If the above one can't help you get the expected result, please provide some raw data in your table (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following links to share the required info:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi @ZuzanaK ,
If I understand correctly, the cost value needs to be divided by 2 if the date spans two weeks. Am I right? If yes, you can create a calculated column as below to get it:
Column =
DIVIDE (
'Table'[sell cost],
WEEKNUM ( 'Table'[End Date], 2 ) - WEEKNUM ( 'Table'[Start Date], 2 )
)
If the above one can't help you get the expected result, please provide some raw data in your table (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following links to share the required info:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
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 |
---|---|
102 | |
101 | |
78 | |
70 | |
63 |
User | Count |
---|---|
141 | |
106 | |
101 | |
85 | |
72 |