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
inascargio
Frequent Visitor

How to flag duplicates with power pivot

Hi all,

Is there a way to add a calculated measure to flag data which are repeated within a pivot?

Below an example: I would like to add a column (see in yellow) flagging the value smfab when it is repeated within the Main area. In the attached example this happens only on the Main area EFG.

Any help is welcome!

inascargio

 

image001 (3).png

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

Hi  @inascargio ,

 

Here are the steps you can follow:

1. Create calculated column.

Column =
var _count=
COUNTX(
    FILTER(ALL('Table'),'Table'[Main area]=EARLIER('Table'[Main area])&&'Table'[smfab]=EARLIER('Table'[smfab])),[smfab])
return
IF(
    _count >=2,"Y","N")

2. Result:

vyangliumsft_0-1688003030752.png

 

Best Regards,

Liu Yang

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
inascargio
Frequent Visitor

It works! Thank you 😃

v-yangliu-msft
Community Support
Community Support

Hi  @inascargio ,

 

Here are the steps you can follow:

1. Create calculated column.

Column =
var _count=
COUNTX(
    FILTER(ALL('Table'),'Table'[Main area]=EARLIER('Table'[Main area])&&'Table'[smfab]=EARLIER('Table'[smfab])),[smfab])
return
IF(
    _count >=2,"Y","N")

2. Result:

vyangliumsft_0-1688003030752.png

 

Best Regards,

Liu Yang

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.