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
arun2001mjl
Helper II
Helper II

Need current & previous details based on selection in Slicer

Hello All,

 

I have a Raw Data with Change Number, CI Number & Date in PowerBI.

Change Number as Slicer
CI Number as a CARD

When i select a Change number in Slicer, it should show me current CI number in CARD and another table with all previous Change numbers for that Particular CI.

 

Example:
From below table, I selected AA1 from Slicer and CI1 showing as latest CI in CARD.. But in next Table, it should show me all previous change numbers for that CI as AAA2, AAA3, AAA4 but it is showing as AAA1. How to bring previous change numbers for that CI? Can we achieve this in PowerBI?

arun2001mjl_0-1684737575169.png

 

 

Raw Data:

Change NumberCI NameDate
AAA1CI122-May-23
AAA2CI120-May-23
AAA3CI118-May-23
AAA4CI116-May-23
BBB1CI212-May-23
BBB2CI213-May-23
BBB3CI211-May-23
CCC5CI316-May-23
CCC7CI420-May-23
CCC9CI518-May-23

 

Regards

Arun

1 ACCEPTED SOLUTION
barritown
Super User
Super User

Hello @arun2001mjl,

For example, you could use another card with such a measure (I'd also advise you to set "single select" option in your slicer):

barritown_0-1684750695271.png

Here is the measure in plain text for convenience:

Previous Changes = 
VAR AffectedCI = VALUES ( data[CI Name] )
VAR LatestDate = MAX ( data[Date] )
RETURN CONCATENATEX ( FILTER ( ALL (data), AND ( [CI Name] IN AffectedCI, [Date] < LatestDate ) ), [Change Number], UNICHAR(10) )

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

 

View solution in original post

1 REPLY 1
barritown
Super User
Super User

Hello @arun2001mjl,

For example, you could use another card with such a measure (I'd also advise you to set "single select" option in your slicer):

barritown_0-1684750695271.png

Here is the measure in plain text for convenience:

Previous Changes = 
VAR AffectedCI = VALUES ( data[CI Name] )
VAR LatestDate = MAX ( data[Date] )
RETURN CONCATENATEX ( FILTER ( ALL (data), AND ( [CI Name] IN AffectedCI, [Date] < LatestDate ) ), [Change Number], UNICHAR(10) )

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

 

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.