Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi All,
I'm trying to count new tenants per month but can't really figure it out...
I have a table with these columns:
TenantID | Name | ValidFrom
I would like to have a Card for each month (or table, don't know whats most useful to display that kind of information), which displays the newly added tenants in that month.
TIA!
Solved! Go to Solution.
thanks guys,
ultimately the solution was to create a card and measure for each month.
And the measure looks like this:
New January = CALCULATE(COUNT(Tenant[Name]); Tenant[ValidFrom] >= DATE(2017; 01; 01) && Tenant[ValidFrom] < DATE(2017; 02; 01) )
thanks guys,
ultimately the solution was to create a card and measure for each month.
And the measure looks like this:
New January = CALCULATE(COUNT(Tenant[Name]); Tenant[ValidFrom] >= DATE(2017; 01; 01) && Tenant[ValidFrom] < DATE(2017; 02; 01) )
Hi,
Please post a small sample and show your expected result.
here's a sample of my source and what I would like to achieve:
Hi,
Hope this helps.
You may refer to the following DAX that creates a new table.
Table = ADDCOLUMNS ( DISTINCT ( SELECTCOLUMNS ( CALENDARAUTO (), "Date", DATE ( YEAR ( [Date] ), MONTH ( [Date] ), 1 ) ) ), "Count", 0 + COUNTROWS ( FILTER ( Table1, YEAR ( Table1[ValidFrom] ) = YEAR ( [Date] ) && MONTH ( Table1[ValidFrom] ) = MONTH ( [Date] ) ) ) )
thanks for your reply @v-chuncz-msft, but with your formula I get this error:
"The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."
I meant a calculated table.
https://powerbi.microsoft.com/en-us/guided-learning/powerbi-learning-2-6-create-calculated-tables/