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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors