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.
Hi All,
I need calculated column to found number of sundays in particular month could you plese check below screenshot for sample data.
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but I assume you want to create a new column in a calendar table.
Please check the below picture and the attached pbix file.
I created a very simply calendar table (one column) and added an expected result column.
Expected result CC =
VAR monthstartdate =
EOMONTH ( 'Calendar'[Date], -1 ) + 1
VAR newtable =
FILTER (
'Calendar',
EOMONTH ( 'Calendar'[Date], -1 ) + 1 = monthstartdate
&& FORMAT ( 'Calendar'[Date], "DDDD" ) = "Sunday"
)
RETURN
COUNTROWS ( newtable )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
I am not sure if I understood your question correctly, but I assume you want to create a new column in a calendar table.
Please check the below picture and the attached pbix file.
I created a very simply calendar table (one column) and added an expected result column.
Expected result CC =
VAR monthstartdate =
EOMONTH ( 'Calendar'[Date], -1 ) + 1
VAR newtable =
FILTER (
'Calendar',
EOMONTH ( 'Calendar'[Date], -1 ) + 1 = monthstartdate
&& FORMAT ( 'Calendar'[Date], "DDDD" ) = "Sunday"
)
RETURN
COUNTROWS ( newtable )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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 | |
69 | |
63 |
User | Count |
---|---|
141 | |
106 | |
101 | |
85 | |
72 |