Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Counting rows whit two filters in a Time Period



My goal is to show in a timeline how many persons who are active in a given time period (month) (one source of data) AND have received payments (another source of data).


I manage to calculate the active persons in the time period by using:

Active = CALCULATE(COUNTROWS('Kontaktforløb'); FILTER('Kontaktforløb'; ('Kontaktforløb'[Første hele måned] <= LASTDATE(Kalender[Datekey]) && 'Kontaktforløb'[Sidste hele måned]>= FIRSTDATE(Kalender[Datekey]))))


From here.





But how can I put on an extra filter from a another tabel?


My humble guess (not working):

Active with payment = CALCULATE(COUNTROWS('Kontaktforløb');FILTER('Kontaktforløb'; ('Kontaktforløb'[Første hele måned] <= LASTDATE(Kalender[Datekey]) && 'Kontaktforløb'[Sidste hele måned]>= FIRSTDATE(Kalender[Datekey]))) && LOOKUPVALUE('DREAM-Branche'[Branche];'DREAM-Branche'[FørsteIMåneden];'Kontaktforløb'[Første hele måned];'DREAM-Branche'[cpr_nr];'Kontaktforløb'[CPR FORMAT])<>BLANK())


Post Patron
Post Patron

Hi @ChrisSschmucekr,


You can try to create measure or create relationship beetween these tables.


In second case: 1 - create slicer like: "payment received - yes, no".

                          2 - use visual/report level filter and there indicate people who received payments.

Helpful resources

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors