Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ignas
Advocate II
Advocate II

Data model question

 

Hello

 

I would like to hear your best practise dealing with such data model.Capture.PNG

 

 

  • I have dimCustomer table which connects fact_open and fact tables.

 

I want to show in the report only those customers that have "amount" from "fact_open table". That mean the filter should only show only those names that have amount non blank:

Capture.PNG

 

 

What would be the best practise?

How can I achieve the result?

 

The file:

https://mega.nz/#!j3IC2KyY!MffHMC37adgpYklv2lFYmJ1iFBlHVG0F3T_95dBXl2c

 

 

Regards,

 

Ignas

 

 

 

a

 

 

 

 

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@ignas,

You can create a column in dimcustomer table using DAX below. Then drag the column to page level filter and set its value to "Not blank".

checkColumn = COUNTROWS(RELATEDTABLE(fact_open))

Capture.PNG

Regards,
Lydia

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

View solution in original post

6 REPLIES 6
v-yuezhe-msft
Employee
Employee

@ignas,

You can create a column in dimcustomer table using DAX below. Then drag the column to page level filter and set its value to "Not blank".

checkColumn = COUNTROWS(RELATEDTABLE(fact_open))

Capture.PNG

Regards,
Lydia

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

Hey @v-yuezhe-msft

 

You are absolutely amazing. Such a simple solution solves my big problems.

 

Thanks a lot.

 

Regards,

 

Ignas

 

 

affan
Solution Sage
Solution Sage

Hi @ignas

 

You can acheive to display only the non blank by using the visual filter, without any complex options

 

 

not blank.png

If this helped you, please mark this post as an accepted solution and like to give KUDOS .

 

Regards,

Affan

 

 

 

Hello @affan

 

Unfortunatelly this does not do any changes to the filter.

I need to see in the filter only those customers that have no amount in fact_open.

 

Any thoughts?

 

Regards,

 

Ignas 

@ignas

 

As filtering the slicer is not directly available as of now. However you can use the workarround used in the below illustration to acheive the result.

slicer filterslicer filter

 

 

If this helped you, please mark this post as an accepted solution and like to give KUDOS .

 

Regards,

Affan

 

I cannot change from single to both, because I will have data model issues with other dimensions. For example if I have customer both relationship then what I can do if I need to use data filter? Data filter again will show all possible dates.

 

It must be another solution related with structuring data model in another way.


Regards,

 

Ignas

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.