Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Hey everyone,
I have a requirement where user will select a date (dont have any relation with table) and data will be filtered accordingly based on following condition selected date<=effectivefrom and selected date>effectiveto.
So when i remove them result changes as shown in view (2).
So is there any way to achieve it?
Effort that i did:
I did applied it using direct query but its too slow and i want it done in import mode.Also dont want other approach which is hiding the column by turning of wrap text as reports will be sent as in excel.
Solved! Go to Solution.
Try
Sum of quantity =
VAR ChosenDate =
SELECTEDVALUE ( 'Date'[Date] )
VAR Result =
SUMX (
FILTER (
'Table',
ChosenDate <= 'Table'[Effective from]
&& ChosenDate > 'Table'[Effective to]
),
'Table'[Quantity]
)
RETURN
Result
Try
Sum of quantity =
VAR ChosenDate =
SELECTEDVALUE ( 'Date'[Date] )
VAR Result =
SUMX (
FILTER (
'Table',
ChosenDate <= 'Table'[Effective from]
&& ChosenDate > 'Table'[Effective to]
),
'Table'[Quantity]
)
RETURN
Result
Hi @mohtism ,
Did you try creating a relationship between your main table and this Date table?
Can you share more on if you have a data model?
hey @Pragati11 date will be provided from a manual table and it has no relation with main table.Beside this i still did this and its not working
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
56 | |
38 | |
35 |
User | Count |
---|---|
85 | |
66 | |
59 | |
46 | |
45 |