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.
Hi,
I have an input method format as shown below in the image(which is obtained through powerapps)
Where the input date has a 'one to one' relationship with the dim date table
Illustration Purpose: This is how values are stored in the dashboard
Dim input table
DAX Formula
By using the above formulation I want to achieve the following output:
But I get this as my output
Am I missing out something in the formulation?
Solved! Go to Solution.
this code might work
Output=VAR vCurrentDate=max(dimDateTable[Date]) RETURN CALCULATE(SUM(Input[Value]),Input[Date]<=VCurrentDate)
Hi @AntrikshSharma ,
Thanks for the reply
But my values dont get stored as different columns but as a single view for each input case
For example: For input- Input value- 300 @ input date: jun 2021
jun 2020 | 0 |
dec 2020 | 0 |
jun 2021 | 300 |
dec 2021 | 300 |
jun 2022 | 300 |
dec 2022 | 300 |
For input- Input value- 100 @ input date: dec 2021
jun 2020 | 0 |
dec 2020 | 0 |
jun 2021 | 0 |
dec 2021 | 0 |
jun 2022 | 100 |
dec 2022 | 100 |
So each of it is a single view and then finally i want to add them similar to final input above
this code might work
Output=VAR vCurrentDate=max(dimDateTable[Date]) RETURN CALCULATE(SUM(Input[Value]),Input[Date]<=VCurrentDate)
Thanks mate!
Worked like a charm
@Anonymous Try something like this:
=
SUMX (
DimInputTable,
DimInputTable[Column 1] + DimInputTable[Column 2] + DimInputTable[Column 3]
)
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 |
---|---|
10 | |
9 | |
8 | |
8 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
9 |