cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

Is there any possibility to filter the data without table relationship

Hi All,
 

can someone help me to filter the data without having a table relationship?

I have data where I shouldn't create a relationship to arrive at the cross-selling numbers. but I need the Total value should be appearing for the intersecting Count.

Currently, the total on the tooltip is showing the Total value of the Column.

 

I have used the below DAX- which did not work.

 

Measure = CALCULATE([TVPS],
FILTER(ALL('S&P'),
'S&P'[SubServiceLineGroupingDesc]in VALUES('Comparision SSL'[SSL])))
 
attached the sample Report

Cross selling1.png

 

Basically the tooltip should show the below value.

Cross selling.png

Help would be much appreciated.

 

Regards,

Ranjan

5 REPLIES 5
Highlighted
Community Support
Community Support

Re: Is there any possibility to filter the data without table relationship

Hi @RanjanThammaiah 

Why the matrix is filtered as below:

Capture9.JPG

Is any filter selected?

 

Best Regards

Maggie

Highlighted
Helper IV
Helper IV

Re: Is there any possibility to filter the data without table relationship

Hi @v-juanli-msft  sorry that is total Value i waas expecting for the "11"  Count in my table tooltip(14,471,559 ).

 

Its basically the intersecting value for Both Audit and Adv solution.

 

I have worked out this in Excel by taking the combination of UDN(ID) count with total value.

But currently the tooltip i am getting the total value of Audit/Adv Solution i.e 

Adv Solutions           Audit
21,511,194             51,910,380

 

Kindly let me know if you need more clarification on this.

 

Regards,

Ranjan 

Highlighted
Community Champion
Community Champion

Re: Is there any possibility to filter the data without table relationship

I didn't try it in your report, but you can pass filters without using a relatonship with the TREATAS() function.  Here is an example using your measure

 

Measure = CALCULATE([TVPS],
TREATAS(VALUES('Comparision SSL'[SSL]),
'S&P'[SubServiceLineGroupingDesc]))
 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat

Highlighted
Helper IV
Helper IV

Re: Is there any possibility to filter the data without table relationship

Hi @mahoneypat  sorry, My bad luck. it doesn't give any value(Just (Blank).

 

Basically I have created the table using the below formula.

 

Cross Selling =
VAR InitialPurchase =VALUES('S&P'[UDN])
VAR ComparisionPurchase =CALCULATETABLE(VALUES('S&P'[UDN]),
ALLSELECTED(SSL),
TREATAS(VALUES('Comparision SSL'[SSL]),'S&P'[SubServiceLineGroupingDesc]))
Return
IF(SELECTEDVALUE(SSL[SSL])=SELECTEDVALUE('Comparision SSL'[SSL- Copy]),
BLANK(),
COUNTROWS(INTERSECT( InitialPurchase, ComparisionPurchase)))

 

 

Highlighted
Community Support
Community Support

Re: Is there any possibility to filter the data without table relationship

Hi @RanjanThammaiah 

I'm not clear about "11 count" you refered.

When i change measure, the tooltip show different result.

Capture9.JPG

Measure =
CALCULATE (
    [TVPS],
    FILTER (
        'S&P',
        FIND ( 'S&P'[SubServiceLineGroupingDesc], MAX ( 'Comparision SSL'[SSL] ), 1, 0 ) > 0
    )
)

is this what you want?

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors