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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Help with DAX

Hi all,

 

I'm creating a measure that its ok, but I want the same number without taking count of (month)

 

B_ClientsPromo has to be always 170 like in may. Here's the formula:

 

B_ClientsInPromo =

CALCULATE(DISTINCTCOUNT(Tickets[client_id]),FILTER(Tickets,Tickets[date]>MIN('Acciones Promocionales'[DisponibleDesde])&& Tickets[date]<MIN('Acciones Promocionales'[DisponibleHasta]))

 

 

markoss92_0-1631525251837.png

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @amitchandak , Thanks! I've been able to extend the value to all months, but now the value is incorrect (1026 instead 170):

 

markoss92_0-1631528305279.png

 

Any ideas? The truly clients who have bought in may are 170:

 

markoss92_1-1631528370283.png

Thanks for all!

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@amitchandak solved! Report level filters 😉

 

Thanks again!

amitchandak
Super User
Super User

@Anonymous , Try like

 

CALCULATE(DISTINCTCOUNT(Tickets[client_id]),FILTER(all(Tickets),Tickets[date]>MIN('Acciones Promocionales'[DisponibleDesde]) && Tickets[date]<MIN('Acciones Promocionales'[DisponibleHasta]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak , Thanks! I've been able to extend the value to all months, but now the value is incorrect (1026 instead 170):

 

markoss92_0-1631528305279.png

 

Any ideas? The truly clients who have bought in may are 170:

 

markoss92_1-1631528370283.png

Thanks for all!

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.