Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi team,
I've data in the following format in a table titled "sms":
| datetime | reason | status |
| 30-01-2022 | AA | failed |
| 12-02-2022 | AA | failed |
| 15-02-2022 | AB | failed |
Then i've created a new Calendar table with calendarauto() function and linked with datetime.
I want to create a bar graph as following for each month and year separately.
The problem is that it is giving me % of total not the month wise %
i've created a measure as following
Solved! Go to Solution.
Hi @Anonymous ,
Add the following measure to your model and use it on your chart:
Percentage by month =
DIVIDE (
COUNTROWS ( sms ),
COUNTROWS (
FILTER ( ALL ( SMS ), sms[datetime] IN VALUES ( 'Calendar'[Date] ) )
)
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous ,
Add the following measure to your model and use it on your chart:
Percentage by month =
DIVIDE (
COUNTROWS ( sms ),
COUNTROWS (
FILTER ( ALL ( SMS ), sms[datetime] IN VALUES ( 'Calendar'[Date] ) )
)
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThe Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |