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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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