cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

DISTINCT COUNTX for an EXPRESSION?

Hi team,

 

Can I get through an expresion de unique values after concatenate the 4 first columns ( Reservation, date, train, wagon ) ? 

 

Now I'm aplying a DISTINCOUNT to COMBINEVALUES ( columns )

 

RESERVATIONDATETRAINWAGONPAX COMBINEVALUES
1-10114/11/2020A11 1-10144149A1
1-10114/11/2020A12 1-10144149A1
1-10115/11/2020A11 1-10144150A1
1-10115/11/2020A12 1-10144150A1
1-10214/11/2020A11 1-10244149A1
1-10214/11/2020A12 1-10244149A1
1-10214/11/2020A13 1-10244149A1
1-10314/11/2020A11 1-10344149A1
1-10314/11/2020B21 1-10344149B2
1-10314/11/2020B31 1-10344149B3

 

Thank you,

1 ACCEPTED SOLUTION
Super User III
Super User III

Hi @ADRICHECKIN 

Try this measure in card visual

Measure =
COUNTROWS (
    SUMMARIZE (
        Table1,
        Table1[RESERVATION],
        Table1[DATE],
        Table1[TRAIN],
        Table1[WAGON]
    )
)

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

View solution in original post

2 REPLIES 2
Super User III
Super User III

Hi, @ADRICHECKIN , you can easily get the job done in Powe Query by adding a custom column

add.png

[RESERVATION] & Text.From(Number.From(Date.From([DATE],"fr"))) & [TRAIN] & Text.From([WAGON])

 

Super User III
Super User III

Hi @ADRICHECKIN 

Try this measure in card visual

Measure =
COUNTROWS (
    SUMMARIZE (
        Table1,
        Table1[RESERVATION],
        Table1[DATE],
        Table1[TRAIN],
        Table1[WAGON]
    )
)

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

View solution in original post

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors