Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have uploaded my updated (1/30) PBIX file here.
Bottom is original question (1/29/2025):
Previously, I had wrapped one measure called "Average" inside another measure called "decimalFix":
Due to performace issue of "Average" measure, I modified the "Average" measure to "AverageNew" as below:
Now, I am trying to apply the logic of "decimalFix" to "AverageNew" so that on the new visual (matrix), I would like to have both 0 and 1 decimal places.
For now, each day's number is fine (with 0 decimal), but the 'Average Census' needs to show 1 decimal numbers.
How do I go about doing it?
Update (1/30/2025):
Sorry. I realized that I need to come up with a solution to treat rows with null data (because there is filter to limit data and there are more than 1 hierarchy of data):
Bottom measure would not work for the null data that is not showing in these date period:
So, requirement is how to get rid of those rows with blank value?
Thanks.
Solved! Go to Solution.
Hi @JustinDoh1
Thanks for the reply from Jihwan_Kim and bhanu_gautam .
JustinDoh1 , please try to create a measure as follows.
Measure = IF([decimalFixNew] <> BLANK(), 1, 0)
Put the measure into the visual-level filters, set up show items when the value is 1.
If another user's answer helped you, please mark their answer as the solution. This will help more users who are facing the same or similar difficulties. Thank you!
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@JustinDoh1 , Use this measure
decimalFixNew =
IF(
DISTINCTCOUNT('Date'[DateFormat]) = 1,
FORMAT([AverageNew], "0"),
FORMAT([AverageNew], "0.0")
)
Proud to be a Super User! |
|
@bhanu_gautam Thank you so much for your help again. Sorry. I realized that my requirement has to be changed because initially, I had an issue with dealing with null value, and I thought placing on the measure "AverageNew" would meet the need.
And I wanted to ask to just deal with 1 decimal place.
Sorry. I presented the scenario which would not meet the issues on initial stage (having multiple hierarchy) yesterday.
I have updated my content on the top with updated PBIX file attached here.
I realized that I need to come up with a solution to treat rows with null data:
How do I fix so that all of "Insurance" hierarchy would not show up?
Hi,
I am not sure if I understood your question correctly, but please try creating a new measure like below.
decimalFixNew =
if(DISTINCTCOUNT('Date'[DateFormat])=1,
format([AverageNew],"0"),
format([AverageNew],"0.0")
)
Thank you so much for your help again. Sorry. I realized that my requirement has to be changed because initially, I had an issue with dealing with null value, and I thought placing on the measure "AverageNew" would meet the need.
And I wanted to ask to just deal with 1 decimal place.
Sorry. I presented the scenario which would not meet the issues on initial stage (having multiple hierarchy) yesterday.
I have updated my content on the top with updated PBIX file attached here.
I realized that I need to come up with a solution to treat rows with null data:
How do I fix so that all of "Insurance" hierarchy would not show up?
Hi @JustinDoh1
Thanks for the reply from Jihwan_Kim and bhanu_gautam .
JustinDoh1 , please try to create a measure as follows.
Measure = IF([decimalFixNew] <> BLANK(), 1, 0)
Put the measure into the visual-level filters, set up show items when the value is 1.
If another user's answer helped you, please mark their answer as the solution. This will help more users who are facing the same or similar difficulties. Thank you!
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous FYI, I just created a new post related to performance issue. Thanks!
@Anonymous I would like to close this thread because I think what I am experiencing is more of performance issue. But, if you are able to help me to come up with a solution to modify the "decimalFixNew" with additional logic, please let me know. Thank you!
@Anonymous
Thank you so much for your help.
Even though it works with a small dataset, when I applied into filter on my regular PBIX file (which has a data from year 2022), the visual crashes.
Is there anyway not to use filter but modify/add the logic on "decimalFixNew" by chance? Sorry for trouble..
I am also curious how I could minimize the size or group dataset.
I also experience that when I try on Bookmark, visual crashes more. I am wondering why?
Thanks!
@Jihwan_Kim , I didn't saw your response I was drafting one sorry for that
@JustinDoh1 , Go with this both are same
Proud to be a Super User! |
|
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 |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |