Forum Discussion
Dax Logic
- Anonymous3 years ago
Hi MohammedGouse,
So you mean want to two step calculation to get the record count that both include current month and previous month?
If that is the case, you can add a variable and replace the raw formula count calculation with VALUES function to extract and store the id list. Then you can extract the previous month id list and use INTERSECT function to compare with above list to get the 'return' count.
INTERSECT function (DAX) - DAX | Microsoft Learn
Regards,
Xiaoxin Sheng
MohammedGouse Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
Attaching the PBIX file for Refrence
Above Mentioned the image the Date range 1st Jan to 31st Jan Count of attendees were = 31
so the Requirement is need to create One more KPI Returning if any of this 31 attendees are attended before Jan 1st 2022 then that Count has to come under Returning Attendee
i am Unable to Attach Pbix Contten ading under Table