I have two tables, Account with their created date and a financial period table/Calendar with Quarters start and end date columns.
The two tables are not linked.
I'm trying to calculate infront of every period how many accounts were created in this period but Dax is not seeing the PeriodStartDate/PeriodEndDate columns. Any help would be appreciated. Thanks!
My attempt at it:
New Customers = CALCULATE( COUNT(Account[Id]) , Account[CreatedDate] >= 'Finance Period'[PeriodStartDate] , Account[CreatedDate] <= 'Finance Period'[PeriodEndDate])
Solved! Go to Solution.
Hi @MohamedSaleh ,
You can create a new table visual and drag 'Finance Period'[PeriodStartDate], 'Finance Period'[PeriodEndDate] and this measure into the table visual.
New Customers =
CALCULATE (
COUNT ( 'Account'[Id] ),
'Account'[CreatedDate] >= MAX('Finance Period'[PeriodStartDate]),
'Account'[CreatedDate] <= MAX('Finance Period'[PeriodEndDate])
)
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Hi @MohamedSaleh ,
You can create a new table visual and drag 'Finance Period'[PeriodStartDate], 'Finance Period'[PeriodEndDate] and this measure into the table visual.
New Customers =
CALCULATE (
COUNT ( 'Account'[Id] ),
'Account'[CreatedDate] >= MAX('Finance Period'[PeriodStartDate]),
'Account'[CreatedDate] <= MAX('Finance Period'[PeriodEndDate])
)
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
User | Count |
---|---|
204 | |
52 | |
43 | |
39 | |
39 |
User | Count |
---|---|
266 | |
210 | |
73 | |
71 | |
65 |