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

Become a Certified Power BI Data Analyst! Prepare for Exam PL-300 with expert-led live sessions. Get registered!

Reply
Diportee97
Helper I
Helper I

Dax Measure issues

IMG_0692.jpeg

IMG_0691.jpeg

 Recently i ran into a small issue while replicating your Hospital Dashboard,the patient visits growth arrow measure isn’t showing value,it only returned percentage symbol only and not value with percentage,what could lead to this error and what is the solution,thanks 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Diportee97 ,

 

You can modify this measure.

Patient visit pm = 
var _date=DATE(SELECTEDVALUE('Calendar'[Year]),SELECTEDVALUE('Calendar'[Monthnum]),1)
RETURN 
CALCULATE([Patient Visits],FILTER(ALL('Hospital ER'),YEAR([Date without time])=YEAR(EOMONTH(_date,-1)) && MONTH([Date without time])=MONTH(EOMONTH(_date,-1)) ))

Then the result is as follows.

vtangjiemsft_0-1740122384182.png

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Diportee97 ,

 

You can modify this measure.

Patient visit pm = 
var _date=DATE(SELECTEDVALUE('Calendar'[Year]),SELECTEDVALUE('Calendar'[Monthnum]),1)
RETURN 
CALCULATE([Patient Visits],FILTER(ALL('Hospital ER'),YEAR([Date without time])=YEAR(EOMONTH(_date,-1)) && MONTH([Date without time])=MONTH(EOMONTH(_date,-1)) ))

Then the result is as follows.

vtangjiemsft_0-1740122384182.png

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

quantumudit
Super User
Super User

Hi @Diportee97 

Could you please provide sample data that fully represents your issue or question in a usable format, rather than a screenshot? Ensure the dataset is anonymized and does not contain any sensitive or unrelated information.

 

Additionally, it would be very helpful if you could share the expected outcome based on the provided data - this can be in any format, including a screenshot. Having a clear reference for comparison will significantly improve the chances of getting the correct solution in the first response.

 

For best practices, you may find the following links useful:

 

It seems like Patient Visit Growth returns blank. Need to see other measures and how they act.

 

Thanks,

Udit

IMG_0693.jpeg

 The expected outcome is that green arrow for Previous Year or Previous Month

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

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