Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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.
Hi,
i have below requirement
i have four tables
Dim1 (key,id)
Dim2(Key1,Eff_date,Termin_date)
Fact(key,key1)
Date(Start_date,End_date)
Relationship
Dim1[key]=fact[key]
Dim2[Key1]=fact[key1]
Dim2[Eff_date]=Date[Start_date]
Slicers:
1 st is 'after' slicer on start_date and 2 nd slicer is 'before' slicer on end_date
I want to count distinct id of dim1 where effective date and termination date of dim2 are as per user selection
e.g Eff_date<start_date and Termin_date<end_date
I want to create such measure which calculates distinct id based on date filters.
sample data
dim1
key|id
1|5
2|5
3|6
4|6
fact is empty
key1|key
dim2
key1|eff_date|termin_date
101|01-02-2016|01-02-2018
102|02-02-2016|02-02-2018
103|03-02-2016|13-02-2018
date
start_date|end_date
both columns have values from 01-01-2015 to 01-01-2020
Solved! Go to Solution.
@Anonymous ,
You may take a look at the following posts.
@Anonymous ,
You may take a look at the following posts.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
62 | |
61 | |
55 | |
38 | |
27 |
User | Count |
---|---|
83 | |
61 | |
45 | |
41 | |
39 |