This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello,
I need help with creating a code to find how many days of the weeks belong to One or another Month.
Example:
New column
1/31/2022 January week day 1 Feb
2/1/2022 February week day 2 Feb
2/2/2022 February week day 3 Feb
2/3/2022 February week day 4 Feb
2/4/2022 February week day 5 Feb
2/5/2022 February week day 6 Feb
2/6/2022 February week day 7 Feb
If there is more than 4 days in the same Month than all that week I need to be in that Month. In the example all this days have to be in February .
Any suggestions?
The month that has it more times in a week always wins. Then the output will be January for whole week.
what if no more than 4 days? what's the output for the first row?
Proud to be a Super User!
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 32 | |
| 25 | |
| 24 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 27 | |
| 24 | |
| 19 |