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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
gvb238
Frequent Visitor

Comparison with the previous month using Power Bi

Hi

 

I have 3 fields Period, Bucket, Ecmployee code.

Scenario: here 2 months period, it is compare with previous Month.

Aug-Red (102)

Sep-Amber  (102)  based on Employee code  equal to then display Employee count in below output. and both period green to green it is come ot required.

 

Period             Bucket   Employee Code

Aug-2018        Red           102

Aug-2018        Amber      105

Aug-2018        Green         223

 

 

Period             Bucket   Employee Code

Sep-2018        Amber          102

Sep-2018        Green      105

Sep-2018        Red        223

 

output:

when select Sept Period filter:  Red to Amber,       Amber to green,            Red to green  

Aug - Sept- Employee Code - equal -- display Count.

 

 

How to create a cal?

1 ACCEPTED SOLUTION
petrovnikitamai
Resolver V
Resolver V

1.add column "netxMonth" in table 

nextMonth = DATEADD('table'[Period];1;MONTH)

2. lookupvalue and concat

bucketNexMonth = IF(ISBLANK('table'[nextMonth]);BLANK();'table'[Bucket]&" to "&LOOKUPVALUE('table'[Bucket];'table'[Employee Code];'table'[Employee Code];'table'[Period];'table'[nextMonth]))

try this

View solution in original post

1 REPLY 1
petrovnikitamai
Resolver V
Resolver V

1.add column "netxMonth" in table 

nextMonth = DATEADD('table'[Period];1;MONTH)

2. lookupvalue and concat

bucketNexMonth = IF(ISBLANK('table'[nextMonth]);BLANK();'table'[Bucket]&" to "&LOOKUPVALUE('table'[Bucket];'table'[Employee Code];'table'[Employee Code];'table'[Period];'table'[nextMonth]))

try this

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.