Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Hi friends (and @dustinn)
Today I've posted a message asking some help and I had a solution Dynamic percentage by date and category, but now I need to add some aditional feature: a running total for a measure generated.
I had the following table:
And I had to add a dynamic measure affected by DATE visual filter, so:
1) Make a Date table. At Modeling tab, click on New Table and insert the DAX:
Date = CALENDAR(MIN('Table'[Plan Date]),MAX('Table'[Plan Date]))
2) At Model on the left side, create a relationship between the 2 tables, Table[Plan Date] = Date[Date]
3) Create a measure:
Solved! Go to Solution.
Hi,
Please try this measure:
Measure RT =
DIVIDE (
CALCULATE (
SUM ( 'Table'[Weight] ),
FILTER (
ALLSELECTED('Table'),
'Table'[PROJECT] in FILTERS('Table'[PROJECT]) &&
'Table'[PLAN DATE] <= MIN ( 'Table'[PLAN DATE] )
)
),
CALCULATE (
SUM ( 'Table'[Weight] ),
ALLEXCEPT ( 'Table', 'Table'[Project], 'Date'[Date] )
)
)
And the result shows:
Hope this helps.
Best Regards,
Giotto Zhi
Hi,
Please try this measure:
Measure RT =
DIVIDE (
CALCULATE (
SUM ( 'Table'[Weight] ),
FILTER (
ALLSELECTED('Table'),
'Table'[PROJECT] in FILTERS('Table'[PROJECT]) &&
'Table'[PLAN DATE] <= MIN ( 'Table'[PLAN DATE] )
)
),
CALCULATE (
SUM ( 'Table'[Weight] ),
ALLEXCEPT ( 'Table', 'Table'[Project], 'Date'[Date] )
)
)
And the result shows:
Hope this helps.
Best Regards,
Giotto Zhi
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
User | Count |
---|---|
92 | |
92 | |
83 | |
80 | |
49 |
User | Count |
---|---|
146 | |
137 | |
109 | |
68 | |
55 |