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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
mg00842082
Regular Visitor

Need Urgent help on table visual dynamically to display the required records.

Hi All,

 

Data in Report:

mg00842082_2-1726496219830.png

 

Requirement:

1.For example customer ID: 10005001 is having 3 different policy numbers and First Name, Last Name , Gender, DOB is same. This Customer ID details are not matching with other Customer ID's In this case we do not display these records in report.


2.Coming to 10002001 and 10004001 both is having same First Name, Last Name , Gender, DOB are matching irrespective of Customer ID's this data need to display in report page 1.

 

(Note : I have many Customer id's in report which not required to display in report. it means  First Name, Last Name , Gender, DOB not matching with any Customer ID's )

In this case how can we remove that Un-wanted data in report page 1 and how to display these records in page 2.

 

This is the requirement from the customer which the required data need to display in the table visual of the report.

Expected Result:

mg00842082_3-1726496383844.png

 

In the above screenshot Expected result is to not display Customer ID - 10005001 and it will be displayed in another page of the report. Is this possible in power BI?

 

Sample Records provided below to work on to test in power BI:

 

Customer ID Policy Number First Name Last Name Gender    DOB
10005001       12345               Gopal Krishna            M          10/11/1994
10005001       56789                Gopal Krishna           M          10/11/1994
10005001       34567                Gopal Krishna          M            10/11/1994
10002001       11223                 Vinay       Kumar      M            10/08/1995
10002001       22334                   Vinay      Kumar    M             10/08/1995
10004001      33445                  Vinay         Kumar   M              10/08/1995
10004001      44556                  Vinay -      Kumar    M             10/08/1995
10005100      47890                    Ramesh    sai        M              06/07/1996
10005144      87903                   Ramesh     sai        M              06/07/1996
10008222     24794                    Baba         sab       M               01/01/1990
10007474      82395                   Baba         sab       M               01/01/1990

 

Regards,

Krishna.

 

1 ACCEPTED SOLUTION
v-xingshen-msft
Community Support
Community Support

Hi @mg00842082 ,

We can be divided into two steps to operate, the first step is to mark duplicates, we use the first variable A to determine whether there are duplicates in our data, and then the second step begins to ask for duplicates of our customer ID, set to greater than 1, so that 10005001 excluded, and then finally applied to our filters to filter out the value of 0, you can achieve your needs!

DuplicateFlag = 
VAR A =
   CALCULATE(
       COUNTROWS('customer_data'),
       ALLEXCEPT('customer_data', 'customer_data'[First Name], 'customer_data'[Last Name], 'customer_data'[Gender], 'customer_data'[DOB])
   )
VAR UniqueCustomerIDCount =
   CALCULATE(
       DISTINCTCOUNT('customer_data'[Customer ID]),
       ALLEXCEPT('customer_data', 'customer_data'[First Name], 'customer_data'[Last Name], 'customer_data'[Gender], 'customer_data'[DOB])
   )
RETURN
IF(A >=2 && UniqueCustomerIDCount > 1,
 1, 
 0)

vxingshenmsft_0-1726539350332.png

If you need to show the data of 10005001 on another page, we can try to add a buttons to realize a jump to our other interface.

vxingshenmsft_1-1726539580758.png

vxingshenmsft_3-1726539611970.png

I hope my answer is helpful, you can check the pbix file I uploaded if you still have questions, if you have further questions you can always contact me and I will reply the first time I see a message!

Hope it helps!

 

Best regards,
Community Support Team_ Tom Shen

 

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

2 REPLIES 2
mg00842082
Regular Visitor

This is Working Fine. I have Modified it Thanks for the response.

v-xingshen-msft
Community Support
Community Support

Hi @mg00842082 ,

We can be divided into two steps to operate, the first step is to mark duplicates, we use the first variable A to determine whether there are duplicates in our data, and then the second step begins to ask for duplicates of our customer ID, set to greater than 1, so that 10005001 excluded, and then finally applied to our filters to filter out the value of 0, you can achieve your needs!

DuplicateFlag = 
VAR A =
   CALCULATE(
       COUNTROWS('customer_data'),
       ALLEXCEPT('customer_data', 'customer_data'[First Name], 'customer_data'[Last Name], 'customer_data'[Gender], 'customer_data'[DOB])
   )
VAR UniqueCustomerIDCount =
   CALCULATE(
       DISTINCTCOUNT('customer_data'[Customer ID]),
       ALLEXCEPT('customer_data', 'customer_data'[First Name], 'customer_data'[Last Name], 'customer_data'[Gender], 'customer_data'[DOB])
   )
RETURN
IF(A >=2 && UniqueCustomerIDCount > 1,
 1, 
 0)

vxingshenmsft_0-1726539350332.png

If you need to show the data of 10005001 on another page, we can try to add a buttons to realize a jump to our other interface.

vxingshenmsft_1-1726539580758.png

vxingshenmsft_3-1726539611970.png

I hope my answer is helpful, you can check the pbix file I uploaded if you still have questions, if you have further questions you can always contact me and I will reply the first time I see a message!

Hope it helps!

 

Best regards,
Community Support Team_ Tom Shen

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.