Forum Discussion
Anonymous
5 years agoNot applicable
New Measure, search and return
Hello everyone, Can you please help to tell: How to create measure to: Sum Table2[Clicks] for certain Unique [Table1]Campaign Page ID are cointained in Table2[Page] under certain [Table1]Actio...
- Anonymous5 years ago
HI Anonymous,
I'd like to suggest you add a new calculated column to table2 to extract the fact page id:
PageID = PATHITEM ( SUBSTITUTE ( [Page], "/", "|" ), PATHLENGTH ( SUBSTITUTE ( [Page], "/", "|" ) ) )Then you can use this field and the date range of the 'week number' to summary records.
Measure = VAR currDate = MAX ( Table[Action Date] ) VAR _list = CALCULATETABLE ( VALUES ( Table[Campaign Page ID] ), FILTER ( ALLSELECTED ( Table ), YEAR ( [Action Date] ) = currDate ), VALUES ( Table[Action Week] ) ) RETURN CALCULATE ( SUM ( Table2[Clicks] ), FILTER ( ALLSELECTED ( Table2 ), [PageID] IN _list && WEEKNUM ( [Date] ) = WEEKNUM ( currDate ) && YEAR ( [Date] ) = YEAR ( currDate ) ) )Regards,
Xiaoxin Sheng
Anonymous
5 years agoNot applicable
Hi Ashish_Mathur , Thanks for you remind! I haven't been awared of this issue yet!
Here is the downloadable sample PBI file shared from Microsoft OneDrive, hopefully it's downloadable and I may have your help.
Ashish_Mathur
Super User
5 years agoHi,
I have downloaded your PBI file but cannot understand what you want.