Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi Folks
I have table like below
Consid | consdate | state | city |
qqjh | 2021-08-01 | ON | toronto |
skjdf | 2021-07-01 | QC | Montreal |
dksdlksm | 2021-07-10 | QC | Montreal |
wodmslm | 2021-08-01 | QC | Montreal |
djnhm | 2021-07-10 | ON | toronto |
lklj | 2021-08-10 | ON | toronto |
sclzx | 2021-07-10 | ON | toronto |
efrd | 2021-06-10 | ON | toronto |
aaa | 2021-06-01 | QC | Montreal |
gfg | 2021-06-22 | QC | Montreal |
I need to show a table that show month to month count (consID) and %Growth of each month like this
Count of Consid | Column Labels | ||||||
Row Labels | Jun | Jul | Aug | Grand Total | |||
ON | 235 | 137 | 324 | 696 | JUL - Jun /JUN = = -98 /235 | aug -Jul /JUL == 187 /137 | |
toronto | 235 | 137 | 324 | 696 | |||
QC | 122 | 132 | 100 | 354 | |||
Montreal | 122 | 132 | 100 | 354 | |||
Grand Total | 357 | 269 | 424 | 1050 | |||
what is your sugesstion ?!
Solved! Go to Solution.
Hi @Mniknejad
Try this measure:
%Growth =
VAR _LastM =
CALCULATE (
COUNTA ( 'Table'[Consid] ),
ALLEXCEPT ( 'Table', 'Table'[consdate], 'Table'[state], 'Table'[city ] ),
PREVIOUSMONTH ( 'Table'[consdate] )
)
VAR _ThisM =
COUNTA ( 'Table'[Consid] )
RETURN
IF ( ISBLANK ( _LastM ), BLANK (), ( _ThisM - _LastM ) / _LastM )
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hi @Mniknejad
Based on the sample you attached, you can try this,
create the measure
growth =
var _premonth=MAX('calendar'[Month])-1
var _thiscount=CALCULATE(COUNT('Table'[Consid]),'Table')
var _precount=CALCULATE(COUNT('Table'[Consid]),FILTER(ALLEXCEPT('Table','Table'[state],'Table'[city]),MONTH('Table'[consdate])=_premonth))
return DIVIDE(_thiscount-_precount,_precount,BLANK())
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Please check the below picture and the attached sample pbix file.
I suggest having a Dim-Calendar table.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
Hi @Mniknejad
Try this measure:
%Growth =
VAR _LastM =
CALCULATE (
COUNTA ( 'Table'[Consid] ),
ALLEXCEPT ( 'Table', 'Table'[consdate], 'Table'[state], 'Table'[city ] ),
PREVIOUSMONTH ( 'Table'[consdate] )
)
VAR _ThisM =
COUNTA ( 'Table'[Consid] )
RETURN
IF ( ISBLANK ( _LastM ), BLANK (), ( _ThisM - _LastM ) / _LastM )
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |