Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
majid_75
Helper I
Helper I

Dax list account from start year to selected date

Hello,

 

I have un problem, pls help me

 

i have a table and 2 selecters (Year and Month).

I want to have the list of clients filtered on the date from the beginning of the year to the selected month end date

 

Year2020
Month8
  
AccountDate

AA

01/02/2020

A

01/02/2020
B05/03/2020
C07/04/2020
D10/05/2020
E12/06/2020
F15/07/2020
G17/08/2020
H19/09/2020
I22/10/2020
J24/11/2020
K27/12/2020

 

Here is my measurement but I can’t display the customer name, only the count.

CALCULATE(
DISTINCTCOUNT(ta_fact_sales[Name]),
FILTER(
ALL('Date'),
'Date'[Year]=YEAR(DATE(LEFT( SELECTEDVALUE('Date'[Yearmonth]),4),RIGHT( SELECTEDVALUE('Date'[Yearmonth]),2),1 ))
&& 'Date'[Yearmonth] <= SELECTEDVALUE('Date'[Yearmonth])
&& 'Date'[Date] >= STARTOFYEAR('Date'[Date])
))
 
Thanks
1 REPLY 1
lbendlin
Super User
Super User

You can use an iterator function like CONCATENATEX() to get the list of accounts that satisfy your filter criteria.

 

lbendlin_0-1609038563257.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.