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.
Hello!
I am a new member to this forum but been browsing the topics quite frequently since i started to use the DAX language. Unfortunately I’ve now got stuck and would love to reach out to you and see if there are any solution(s) to my problem.
I am having a table with a datestamp which I want to use dynamically in order to calculate how many contracts that has been sent out during this dynamic period of time (as a calculated column, not a measure).
Eg. I want to sum how many contracts has been sent out between StartDt and EndDt relative to the Date shown in Table 1.
This is the data I have
Table 1
Date | Contract (1/0) | CalculatedColumn |
2017-05-01 | 1 | |
2017-05-01 | 1 | |
2017-05-07 | 0 | |
2017-05-09 | 1 |
Table 2
Date (key) | StartDt (-120 days from Date) | EndDt (-30 days from Date) |
2017-05-01 | 2017-01-01 | 2017-04-01 |
2017-05-02 | 2017-01-02 | 2017-04-02 |
2017-05-03 | 2017-01-03 | 2017-04-03 |
etc.. | .. | .. |
The DAX-expression used to far is:
=CALCULATE(SUM(DecisionFilter[DocsCustomer (1/0)]);FILTER(ALL(DecisionFilter);DecisionFilter[DateDocsCustomer]<=MAX(DecisionFilter[DateDocsCustomer]))) which only generated how many Contracts that has been sent out in total..
Please help me!
Thank you very much in advance,
CJ
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 |
---|---|
79 | |
73 | |
57 | |
36 | |
31 |
User | Count |
---|---|
91 | |
60 | |
60 | |
49 | |
45 |