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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Create a dynamic summary for backlog cases and current cases

Hello Team,

Once again i need some help with Power Bi. I have 2 connected tables to QuickBase, one of them contains information of number of cases in previous 3 months, second table contains all cases since beggining of the year. I want to create a single chart where i can show case count for previous 3 months based on 1st table, and case count for current month based on 2nd table. My idea is to create a summary table which will hold values that chart will use to visualise data. To visualise it better:

1st Table

Month EndProductLoBNewClosed
31-01-2020BoxSales326
31-01-2020ShapesMarket611
29-02-2020WidgetNet12
31-03-2020CanFood177

 

2nd Table

Date Case CreatedProductLoBIsClosedCase Owner
01-02-2020CanFoodFALSETom Jerry
28-03-2020WidgetNetTRUEJack Sparrow
05-04-2020BoxSalesFALSECase Owner
05-04-2020ShapesMarketFALSECase Owner

 

I decided to create 3rd table where type equals to Backlog for previous 3 months:

MonthMonth#Type
January1Backlog
February2Backlog
March3Backlog
April4 
May5 
June6 
July7 
August8 
September9 
October10 
November11 
December12 


I extracted month name from [Month End] (1st table) and [Date Case Created] (2nd table) to new column in each table. So all tables have column "Month" with month names. And now what i am struggling with, how do i summarize it?

I am trying to build DAX function for 3rd table like this:
Column Name = If('3rd Table'[Type]="Backlog",Count('1st Table'[New] WHERE '1st Table'[Month]='3rd Table'[Month]'),Count('2nd Table'[isClosed] WHERE '2nd Table'[Month]='3rd Table'[Month]'))

I know syntax is no correct, i just wanted to describe my approach for it.

Thanks in advance for any help.
Ksusser

2 REPLIES 2
Greg_Deckler
Super User
Super User

I would skip the summary table and instead create a Date table using CALENDAR or CALENARAUTO. Link the Date columns together for these 3 tables. Then you can simply use default aggregations in your visual.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks for response,

I am not sure if calendar table will work cuz my end goal is to create bar chart with certain conditions.
Where:
data from January, February and March will come from 1st table

but data for April will come from 2nd table

And this should always work for the previous 3 months and the current month.

I think summary table is a must in this case.

Regards,
Ksusser

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.