Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
Please see the image below. I have some data for december. But january data is not available yet.
So im hardocding it in the return statement saying
if(isblank(result),0, result)
Is there a way I can actually show something like "Not Available".
If I put it text in the above statement, the visual would break
Hi @klehar,
I'm checking how the things are going on about this issue. Whether the answer helps you?
If there is any problem, please feel free to let me know.
hi @klehar
You can apply a dynamic format string to the % Quote Esc QTD measure. This approach retains the same data type but changes the format based on specific conditions. In the screenshot below, I’m applying a dynamic format string to the Sum of Value measure, depending on the value of the Sum of Value by Month measure. The purpose is to ensure that formatting is only applied if the total monthly value is zero and not to all zero values from past months. In your case, this will display "N/A" for 0.0% in December if the dynamic format string is based on the same measure in your table. Alternatively, you could use the FORMAT function, but that would convert the result into a text string. Instead, use "0.00%" as the format string rather than "#,#". Please refer to the attached PBIX file for details.
Proud to be a Super User!
@danextian thanks for the response. However in real life sceanrio my date is conencted through a date dimension.
That isnt working with the allexcept
In my date table I have 4 values, included 202502 feb as well against which there is not even a 0entry in the fact table
Apply ALLEXCEPT to your dates table. I applied that a different table because no sample data was provided and whipped up something for the sake of illustration. Also, your showing 0% in your viz so apply ALLEXCEPT to the same measure as that that is measure you'll want to apply dynamic format string to.
Proud to be a Super User!
it doesnt work on feb that has no data (not even 0)
Hi @klehar , hello all, thank you for your prompt reply!
I could not reproduce your issue with the date dimension table, please check the update pbix:
Best regards,
Joyce
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
agreed with you ,great solutions
can you share the PBI please
Can you share the sample data
Proud to be a Super User! |
|
@klehar , Create a measure to check if the data is available.
JanuaryData =
IF(
ISBLANK(SUM('YourTable'[JanuaryColumn])),
BLANK(),
SUM('YourTable'[JanuaryColumn])
)
Then, create another measure to handle the display logic:
DisplayJanuaryData =
IF(
ISBLANK([JanuaryData]),
"Not Available",
FORMAT([JanuaryData], "0")
)
Go to the matrix visual and select the JanuaryData measure.
Apply conditional formatting based on the value of JanuaryData.
Set the formatting rule to display "Not Available" when the value is blank.
Proud to be a Super User! |
|
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
131 | |
80 | |
56 | |
39 | |
37 |
User | Count |
---|---|
204 | |
83 | |
70 | |
56 | |
50 |