Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Display Months in View Filter Expand / Collapse
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: Friday, August 29, 2014 11:07 AM
Points: 25, Visits: 152
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

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



Group: General Forum Members
Last Login: Today @ 6:06 PM
Points: 39,667, Visits: 36,794
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

Favorite Quotes:
"Has anyone ever told you that a query you have written runs too fast?" - Dwain Camps - 6 Mar 2014

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

Add to briefcase

Permissions Expand / Collapse