Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Display Months in View Filter Expand / Collapse
Author
Message
Posted Wednesday, April 17, 2013 12:15 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, July 24, 2014 1:51 PM
Points: 25, Visits: 151
Please help me

I have Dates table with 12 months in Month field, when I create relationship with my data table it showing in Month field only those months which have in my data table, but I want to display Month filed in View filter with all the 12 months, is there any DAX formula for that

Can any one please let me know

Thanks
Grace
Post #1443426
Posted Wednesday, April 17, 2013 6:49 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 6:46 PM
Points: 36,944, Visits: 31,446
I don't know about PowerPivot but, in T-SQL, you would need to create an OUTER JOIN relationship with your date table and return the month date from the date table instead of from the data table. You need to do the same with PowerPivot. I'd tell you how but, like I said, I don't even know how to spell "PowerPivot".

--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1443564
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse