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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
hnk1
Regular Visitor

Dax Formula for only Dates with values

Hi everyone

 

i have two tables, a date table from 1.1.2019 - 31.12.2050 and the table with dimensions / facts. now i would like to calculate a formula, so only the dates, which have values in the dimension table are showes. I created a formula, but with this formula, all dates - till 31.12.2050 are showed:

 

hnk1_0-1607494352324.png

 

but i like to have a formula which shows only the dates till 2030.

 

thanks for your help

best regards

 

1 REPLY 1
Anonymous
Not applicable

Hi @hnk1 ,

You can update the formula of measure [%Veranderung] as below:

%Veranderung =
CALCULATE (
IF (
DIVIDE ( [Studis], [Studis VJ], 0 ) = 0,
BLANK (),
DIVIDE ( [Studis], [Studis VJ], 0 ) - 1
),
FILTER ( 'Date', 'Date'[Date] <= MAX ( 'px-x-1509090000_112 (1)'[Datum] ) )
)

If the above method is not working, please provide some sample data of two tables with Text format and the formula of measure [Studis ] and [Studis VJ]. And if the field [nur bebuchte wete] is from a measure or calculated column, please also provide its formula. Thank you.

Best Regards

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!

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.

Top Solution Authors
Top Kudoed Authors