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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
azakir
Resolver I
Resolver I

Choose a single record table

Hi Guys. 

Wanted to see if anyone can help out with this. 

 

I've got a table visual that has document versions. As document has different versions on different dates, it shows up more than once. I am trying to do 2 things here: 

 

1) If MAX PG version is same as TG version, Show "inherited", else "non inherited"

2) show just one record per document version. So comparing MAX of PG Version with MAX of TG Version: 

 

azakir_1-1696488620296.png

 

 

2 ACCEPTED SOLUTIONS
devesh_gupta
Super User
Super User

@azakir To show just one record per document version, you can use the following DAX formula:

Table = SUMMARIZE (
    'Table Visual',
    'Table Visual'[Document Version],
    "Max PG Version", MAX ( 'Table Visual'[PG Version] ),
    "Max TG Version", MAX ( 'Table Visual'[TG Version] )
)

 

To show “inherited” if the maximum PG Version is the same as the maximum TG Version, and “non inherited” otherwise, you can use the following DAX formula:

Inheritance = IF (
    [Max PG Version] = [Max TG Version],
    "inherited",
    "non inherited"
)

 

If you find this insightful, please provide a Kudo and accept this as a solution.

View solution in original post

Thanks @devesh_gupta That did the trick for me. 

View solution in original post

2 REPLIES 2
devesh_gupta
Super User
Super User

@azakir To show just one record per document version, you can use the following DAX formula:

Table = SUMMARIZE (
    'Table Visual',
    'Table Visual'[Document Version],
    "Max PG Version", MAX ( 'Table Visual'[PG Version] ),
    "Max TG Version", MAX ( 'Table Visual'[TG Version] )
)

 

To show “inherited” if the maximum PG Version is the same as the maximum TG Version, and “non inherited” otherwise, you can use the following DAX formula:

Inheritance = IF (
    [Max PG Version] = [Max TG Version],
    "inherited",
    "non inherited"
)

 

If you find this insightful, please provide a Kudo and accept this as a solution.

Thanks @devesh_gupta That did the trick for me. 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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