![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have a boolean field in my table which is represented by a bit data type. I would like to show 0=No and 1=false. I know that I can solve it in my data source view. But I would like to translate the result into different languages, so that is not the best solution. I need to create an attribute based on the value. Any ideas? Thanks Henrik. |
#3
| |||
| |||
|
|
I posted almost the identical question a little while back (though I never really got a workable suggestion). Here's what I came up with on my own. 1) If your database is SQL Server 2005 and you use the SQL Native client as the provider, SSAS will automatically display bit fields as True and False. Note that if you use the managed SqlClient provider, this doesn't work (I've reported this as a bug). Of course, if you want Yes/No rather than True/False, then this doesn't help. 2) The approach I ended up taking was to snowflake in a BoolValues table. The table had columns BoolValue_key and BoolValueName - (0, No), and (1, Yes). Then I joined the dimension table to the BoolValues table, and defined an attribute with NameValue set to BoolValueName. Note that I ended up converting the bit column to an int column (although that might not have been necessary). Localizing the result just requires translating the BoolValueNames for the two rows in the BoolValues table. "Henrik Skak Pedersen" <skak (AT) community (DOT) nospam> wrote in message news:OclPBV6QGHA.4952 (AT) TK2MSFTNGP09 (DOT) phx.gbl... Hi, I have a boolean field in my table which is represented by a bit data type. I would like to show 0=No and 1=false. I know that I can solve it in my data source view. But I would like to translate the result into different languages, so that is not the best solution. I need to create an attribute based on the value. Any ideas? Thanks Henrik. |
#4
| |||
| |||
|
|
From: "Henrik Skak Pedersen" <skak (AT) community (DOT) nospam References: <OclPBV6QGHA.4952 (AT) TK2MSFTNGP09 (DOT) phx.gbl #7kOYf6QGHA.5500 (AT) TK2MSFTNGP12 (DOT) phx.gbl Subject: Re: How to handle boolean field Date: Thu, 9 Mar 2006 20:00:46 +0100 Lines: 54 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-ID: <ubDTHv6QGHA.5908 (AT) TK2MSFTNGP14 (DOT) phx.gbl Newsgroups: microsoft.public.sqlserver.olap NNTP-Posting-Host: 80.63.142.94 Path: TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl Xref: TK2MSFTNGXA03.phx.gbl microsoft.public.sqlserver.olap:67953 X-Tomcat-NG: microsoft.public.sqlserver.olap Hi Kevin, Thank you very much for your reply. I think that I then have to go for option 2, because I have to run on 2000 too. Do you know how I translate values in a table? Thanks Henrik. "Kevin Dente" <kevind (AT) no (DOT) spam.denteworld.com> wrote in message news:%237kOYf6QGHA.5500 (AT) TK2MSFTNGP12 (DOT) phx.gbl... I posted almost the identical question a little while back (though I never really got a workable suggestion). Here's what I came up with on my own. 1) If your database is SQL Server 2005 and you use the SQL Native client as the provider, SSAS will automatically display bit fields as True and False. Note that if you use the managed SqlClient provider, this doesn't work (I've reported this as a bug). Of course, if you want Yes/No rather than True/False, then this doesn't help. 2) The approach I ended up taking was to snowflake in a BoolValues table. The table had columns BoolValue_key and BoolValueName - (0, No), and (1, Yes). Then I joined the dimension table to the BoolValues table, and defined an attribute with NameValue set to BoolValueName. Note that I ended up converting the bit column to an int column (although that might not have been necessary). Localizing the result just requires translating the BoolValueNames for the two rows in the BoolValues table. "Henrik Skak Pedersen" <skak (AT) community (DOT) nospam> wrote in message news:OclPBV6QGHA.4952 (AT) TK2MSFTNGP09 (DOT) phx.gbl... Hi, I have a boolean field in my table which is represented by a bit data type. I would like to show 0=No and 1=false. I know that I can solve it in my data source view. But I would like to translate the result into different languages, so that is not the best solution. I need to create an attribute based on the value. Any ideas? Thanks Henrik. |
#5
| |||
| |||
|
|
Hi Kevin, Thank you very much for your reply. I think that I then have to go for option 2, because I have to run on 2000 too. Do you know how I translate values in a table? Thanks Henrik. "Kevin Dente" <kevind (AT) no (DOT) spam.denteworld.com> wrote in message news:%237kOYf6QGHA.5500 (AT) TK2MSFTNGP12 (DOT) phx.gbl... I posted almost the identical question a little while back (though I never really got a workable suggestion). Here's what I came up with on my own. 1) If your database is SQL Server 2005 and you use the SQL Native client as the provider, SSAS will automatically display bit fields as True and False. Note that if you use the managed SqlClient provider, this doesn't work (I've reported this as a bug). Of course, if you want Yes/No rather than True/False, then this doesn't help. 2) The approach I ended up taking was to snowflake in a BoolValues table. The table had columns BoolValue_key and BoolValueName - (0, No), and (1, Yes). Then I joined the dimension table to the BoolValues table, and defined an attribute with NameValue set to BoolValueName. Note that I ended up converting the bit column to an int column (although that might not have been necessary). Localizing the result just requires translating the BoolValueNames for the two rows in the BoolValues table. "Henrik Skak Pedersen" <skak (AT) community (DOT) nospam> wrote in message news:OclPBV6QGHA.4952 (AT) TK2MSFTNGP09 (DOT) phx.gbl... Hi, I have a boolean field in my table which is represented by a bit data type. I would like to show 0=No and 1=false. I know that I can solve it in my data source view. But I would like to translate the result into different languages, so that is not the best solution. I need to create an attribute based on the value. Any ideas? Thanks Henrik. |
#6
| |||
| |||
|
|
Hello, Based on my scope, it seems more appropriate to implement this localization on client side other than server side. Best Regards, Peter Yang MCSE2000/2003, MCSA, MCDBA Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== === This posting is provided "AS IS" with no warranties, and confers no rights. -------------------- From: "Henrik Skak Pedersen" <skak (AT) community (DOT) nospam References: <OclPBV6QGHA.4952 (AT) TK2MSFTNGP09 (DOT) phx.gbl #7kOYf6QGHA.5500 (AT) TK2MSFTNGP12 (DOT) phx.gbl Subject: Re: How to handle boolean field Date: Thu, 9 Mar 2006 20:00:46 +0100 Lines: 54 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-ID: <ubDTHv6QGHA.5908 (AT) TK2MSFTNGP14 (DOT) phx.gbl Newsgroups: microsoft.public.sqlserver.olap NNTP-Posting-Host: 80.63.142.94 Path: TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl Xref: TK2MSFTNGXA03.phx.gbl microsoft.public.sqlserver.olap:67953 X-Tomcat-NG: microsoft.public.sqlserver.olap Hi Kevin, Thank you very much for your reply. I think that I then have to go for option 2, because I have to run on 2000 too. Do you know how I translate values in a table? Thanks Henrik. "Kevin Dente" <kevind (AT) no (DOT) spam.denteworld.com> wrote in message news:%237kOYf6QGHA.5500 (AT) TK2MSFTNGP12 (DOT) phx.gbl... I posted almost the identical question a little while back (though I never really got a workable suggestion). Here's what I came up with on my own. 1) If your database is SQL Server 2005 and you use the SQL Native client as the provider, SSAS will automatically display bit fields as True and False. Note that if you use the managed SqlClient provider, this doesn't work (I've reported this as a bug). Of course, if you want Yes/No rather than True/False, then this doesn't help. 2) The approach I ended up taking was to snowflake in a BoolValues table. The table had columns BoolValue_key and BoolValueName - (0, No), and (1, Yes). Then I joined the dimension table to the BoolValues table, and defined an attribute with NameValue set to BoolValueName. Note that I ended up converting the bit column to an int column (although that might not have been necessary). Localizing the result just requires translating the BoolValueNames for the two rows in the BoolValues table. "Henrik Skak Pedersen" <skak (AT) community (DOT) nospam> wrote in message news:OclPBV6QGHA.4952 (AT) TK2MSFTNGP09 (DOT) phx.gbl... Hi, I have a boolean field in my table which is represented by a bit data type. I would like to show 0=No and 1=false. I know that I can solve it in my data source view. But I would like to translate the result into different languages, so that is not the best solution. I need to create an attribute based on the value. Any ideas? Thanks Henrik. |
#7
| |||
| |||
|
|
From: "Kevin Dente" <kevind (AT) no (DOT) spam.denteworld.com References: <OclPBV6QGHA.4952 (AT) TK2MSFTNGP09 (DOT) phx.gbl #7kOYf6QGHA.5500 (AT) TK2MSFTNGP12 (DOT) phx.gbl |
|
Subject: Re: How to handle boolean field Date: Fri, 10 Mar 2006 11:35:02 -0800 Lines: 109 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Original Message-ID: <ux1ohmHRGHA.6084 (AT) TK2MSFTNGP14 (DOT) phx.gbl Newsgroups: microsoft.public.sqlserver.olap NNTP-Posting-Host: gw01.viewstar.com 63.206.72.126 Path: TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl Xref: TK2MSFTNGXA03.phx.gbl microsoft.public.sqlserver.olap:67996 X-Tomcat-NG: microsoft.public.sqlserver.olap Peter, Interesting. Can you clarify? How would translate on the client-side when using Excel pivot tables, for example? Kevin "Peter Yang [MSFT]" <petery (AT) online (DOT) microsoft.com> wrote in message news:PUgcBKBRGHA.5524 (AT) TK2MSFTNGXA03 (DOT) phx.gbl... Hello, Based on my scope, it seems more appropriate to implement this localization on client side other than server side. Best Regards, Peter Yang MCSE2000/2003, MCSA, MCDBA Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== === This posting is provided "AS IS" with no warranties, and confers no rights. -------------------- From: "Henrik Skak Pedersen" <skak (AT) community (DOT) nospam References: <OclPBV6QGHA.4952 (AT) TK2MSFTNGP09 (DOT) phx.gbl #7kOYf6QGHA.5500 (AT) TK2MSFTNGP12 (DOT) phx.gbl Subject: Re: How to handle boolean field Date: Thu, 9 Mar 2006 20:00:46 +0100 Lines: 54 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-ID: <ubDTHv6QGHA.5908 (AT) TK2MSFTNGP14 (DOT) phx.gbl Newsgroups: microsoft.public.sqlserver.olap NNTP-Posting-Host: 80.63.142.94 Path: TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl Xref: TK2MSFTNGXA03.phx.gbl microsoft.public.sqlserver.olap:67953 X-Tomcat-NG: microsoft.public.sqlserver.olap Hi Kevin, Thank you very much for your reply. I think that I then have to go for option 2, because I have to run on 2000 too. Do you know how I translate values in a table? Thanks Henrik. "Kevin Dente" <kevind (AT) no (DOT) spam.denteworld.com> wrote in message news:%237kOYf6QGHA.5500 (AT) TK2MSFTNGP12 (DOT) phx.gbl... I posted almost the identical question a little while back (though I never really got a workable suggestion). Here's what I came up with on my own. 1) If your database is SQL Server 2005 and you use the SQL Native client as the provider, SSAS will automatically display bit fields as True and False. Note that if you use the managed SqlClient provider, this doesn't work (I've reported this as a bug). Of course, if you want Yes/No rather than True/False, then this doesn't help. 2) The approach I ended up taking was to snowflake in a BoolValues table. The table had columns BoolValue_key and BoolValueName - (0, No), and (1, Yes). Then I joined the dimension table to the BoolValues table, and defined an attribute with NameValue set to BoolValueName. Note that I ended up converting the bit column to an int column (although that might not have been necessary). Localizing the result just requires translating the BoolValueNames for the two rows in the BoolValues table. "Henrik Skak Pedersen" <skak (AT) community (DOT) nospam> wrote in message news:OclPBV6QGHA.4952 (AT) TK2MSFTNGP09 (DOT) phx.gbl... Hi, I have a boolean field in my table which is represented by a bit data type. I would like to show 0=No and 1=false. I know that I can solve it in my data source view. But I would like to translate the result into different languages, so that is not the best solution. I need to create an attribute based on the value. Any ideas? Thanks Henrik. |
![]() |
| Thread Tools | |
| Display Modes | |
| |