Forum Discussion
Converting static to Dynamic Measure
- 4 years ago
Hi Anonymous
Please try something likeMeasure1 = VAR LastDateWithData = CALCULATE ( MAX ( MASTER[Date] ), REMOVEFILTERS () ) VAR LastVerion = CALCULATE ( MAX ( MASTER[Version] ), MASTER[Date] = LastDateWithData, REMOVEFILTERS () ) RETURN CALCULATE ( SUM ( Sales[Values] ) / 1000, MASTER[Version] = LastVerion, ALL ( MASTER[Comparison] ) )
Hi Anonymous
Please try something like
Measure1 =
VAR LastDateWithData =
CALCULATE ( MAX ( MASTER[Date] ), REMOVEFILTERS () )
VAR LastVerion =
CALCULATE (
MAX ( MASTER[Version] ),
MASTER[Date] = LastDateWithData,
REMOVEFILTERS ()
)
RETURN
CALCULATE (
SUM ( Sales[Values] ) / 1000,
MASTER[Version] = LastVerion,
ALL ( MASTER[Comparison] )
)Hai tamerj1
This solution is not working , can i create two table for version?
- tamerj14 years agoCommunity Champion
Anonymous
I don't know how your data and data model look like.- Anonymous4 years agoNot applicable
- tamerj14 years agoCommunity Champion
Anonymous
Try delete FILTER (
- Anonymous4 years agoNot applicable
Hai tamerj1
This is the data model master table contains all dimension values and the sales table is a fact tableThis is the fact table here I will append every version of data in this particular table, I have a data of V5- May -2021 to v4- April-2022
After I had created a version flag so based on this report will understand the max of version
And user want to see the report based on the latest version of data and they want to compare it with previous ones
Requirment is , After appedning every version table instead of write a static latest version(like which i marked in red)
I want to add dynamic latest version. And report should automatically update with latest version.Even the new version of table appending
Hope it clear please reach out still you have any doubt- Anonymous4 years agoNot applicable
Hai tamerj1 can you please help me to acheive this logic