Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello Everyone, I am fresher in Power BI. I am facing the problem following below. It would be more than a great help if, someone help me in these problem. Appreciate your support.
Solved! Go to Solution.
Hi @krishna_chitrak ,
Thanks for the reply from @Uzi2019 , please allow me to provide another insight:
You need to create a date table and then model the one-to-many relationship. Then create a formula similar to the following to be able to correctly use the date hierarchy as the x-axis.
M_activce =
VAR active_ =
CALCULATE ( SUM ( 'Table'[Active] ) )
VAR last_month =
CALCULATE ( SUM ( 'Table'[Active] ), DATEADD ( 'Date'[Date], -1, MONTH ) )
RETURN
active_ - last_month
M_inactivce =
VAR inactive_ =
CALCULATE ( SUM ( 'Table'[Inactive] ) )
VAR last_month =
CALCULATE ( SUM ( 'Table'[Inactive] ), DATEADD ( 'Date'[Date], -1, MONTH ) )
RETURN
inactive_ - last_month
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @krishna_chitrak ,
Thanks for the reply from @Uzi2019 , please allow me to provide another insight:
You need to create a date table and then model the one-to-many relationship. Then create a formula similar to the following to be able to correctly use the date hierarchy as the x-axis.
M_activce =
VAR active_ =
CALCULATE ( SUM ( 'Table'[Active] ) )
VAR last_month =
CALCULATE ( SUM ( 'Table'[Active] ), DATEADD ( 'Date'[Date], -1, MONTH ) )
RETURN
active_ - last_month
M_inactivce =
VAR inactive_ =
CALCULATE ( SUM ( 'Table'[Inactive] ) )
VAR last_month =
CALCULATE ( SUM ( 'Table'[Inactive] ), DATEADD ( 'Date'[Date], -1, MONTH ) )
RETURN
inactive_ - last_month
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Adamk Kong,
It's a very helpful solution. Want to ask that is it possible to add buttons and switch to day and month difference?
Hi @krishna_chitrak ,
Are you able to provide the test data used in your case? It is convenient for me to answer your question as soon as possible.
Best Regards,
Adamk Kong
Hi Adamk Kong,
Sorry for the delay in reply. I attached the excel file link below.
https://docs.google.com/spreadsheets/d/1muxTPW_QjigLCjUtBomWsHRKPH6CplQt/edit?usp=sharing&ouid=11713...
Thank-you
Best Regards,
Krishna Chitrak
Hi @krishna_chitrak
For better modeling you should create calendar / date column.
If you dont want day wise data then select month from date hierarchy by removing other level of hierarchy.
for month on month growth you can use formula below for Previous month
MOM= CALCULATE(SUM('table'[SALES]),DATEADD('table'[DATE],-1,MONTH))
if you have continues date then only above formula will work otherwise try below formula
Hey @Uzi2019, appreciate for your feedback.
I got the output following below and it's not showing the difference. IN customer = Active (2nd graph).
Thank-you
Or you can try Ribbon chart that kind of solve your issue.
it auto shows month wise varience.
User | Count |
---|---|
79 | |
74 | |
44 | |
32 | |
28 |
User | Count |
---|---|
100 | |
93 | |
52 | |
50 | |
48 |