Hello!
I hope it's clear what I am trying to achieve. I am basically comparing two different measures to get a market share. For example:
Phones sold by company / Phones sold by market
However what I would like is to have the same thing but moving back one of the measures, for example three months being:
Phones sold by company (six months ago) / Phones sold by market
Basically I am trying to achieve to move back the date of the first measure by six months. I am trying to use DATEADD as filter like:
Solved! Go to Solution.
Seem fine, Just try with some other measure.
The only doubt neither the agg is used nor field is used as a measure
CALCULATE ( [Phones sold by company], DATEADD( 'Calendar'[Date], -6, MONTH ))
CALCULATE ( [Phones sold by company], datesmtd(DATEADD( 'Calendar'[Date], -6, MONTH )))
CALCULATE ( sum(Table[Phones sold by company]), DATEADD( 'Calendar'[Date], -6, MONTH ))
CALCULATE ( sum(Table[Phones sold by company]), datesmtd(DATEADD( 'Calendar'[Date], -6, MONTH )))
Check position of ( and )
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin
Seem fine, Just try with some other measure.
The only doubt neither the agg is used nor field is used as a measure
CALCULATE ( [Phones sold by company], DATEADD( 'Calendar'[Date], -6, MONTH ))
CALCULATE ( [Phones sold by company], datesmtd(DATEADD( 'Calendar'[Date], -6, MONTH )))
CALCULATE ( sum(Table[Phones sold by company]), DATEADD( 'Calendar'[Date], -6, MONTH ))
CALCULATE ( sum(Table[Phones sold by company]), datesmtd(DATEADD( 'Calendar'[Date], -6, MONTH )))
Check position of ( and )
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin
Apologies, I believe there was an error in my formula. Now seems to work correctly
User | Count |
---|---|
223 | |
81 | |
74 | |
74 | |
53 |
User | Count |
---|---|
184 | |
93 | |
83 | |
76 | |
74 |