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'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/
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 |
---|---|
110 | |
97 | |
78 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |