The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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/
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
99 | |
90 | |
83 | |
64 | |
58 |
User | Count |
---|---|
244 | |
128 | |
119 | |
82 | |
78 |