Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 49134

Adding Relations

$
0
0

Hi

I have 2 tables

tblSales ([ProductID] , [Price$])

                   1                250

                   2                400

                   3              1800

you get the idea

 

tblSalesBracket ([Price$] , [BandRange])

                              1          [Less Than 100]

                              2          [Less Than 100]

                               .                  .

                               .                  .

                             498        [400 - 500]

                             499        [400 - 500]

                             500        [Over 500]

 

As you can see i can not use relation for the [Price$] field between the 2 tables becasue the tblSalesBracket ends at 500 but in the tblSales i have more that 500

 

how can i add a relate the 2 fields together, i assume i need to use DAX

and what happens when i use decimals in the tblSales only what would be the solution

Thanks


Viewing all articles
Browse latest Browse all 49134

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>