Answer:
Hi @simonbb,
Using Datamentor/EDNA AI tool built in the EDNA Platform. You will be able to get your questions answered:
Please give DataMentor a try.
Here what comes up in the Datamentor.
Yes, you can suppress the “Blank” with a zero and still retain the drill-through functionality correctly for relevant records. Here’s a step-by-step guide:
Step 1: Create a Custom Measure to Handle BLANK()
Create a custom measure that replaces BLANK()
with zero but retains the drill-through context. Use a measure that ensures the original context is preserved.
CustomCountMeasure =
IF(
ISBLANK([OriginalCountMeasure]),
0,
[OriginalCountMeasure]
)
Step 2: Adjust Drill-Through Logic
To ensure the drill-through works correctly, you need to use the original measure for the actual drill-through logic but display the custom measure.
Step 3: Use SWITCH for Conditional Formatting
If necessary, use SWITCH
to make sure that zero values are properly formatted:
DisplayValue =
SWITCH(
TRUE(),
ISBLANK([OriginalCountMeasure]), 0,
[OriginalCountMeasure]
)
Step 4: Conditional Formatting in the Card Visual (Optional)
If further customization is needed, apply conditional formatting on the card visual:
- Select the Card Visual:
- Go to the visualization pane.
- Click ‘Format’ (paint roller icon).
- Conditional Formatting:
- Apply conditional formatting by changing the appearance if the value is
0
.
Example of Conditional Formatting:
ColorCode = IF([OriginalCountMeasure] = 0, "Red", "Black")
Step 5: Modify Drill-Through Action
Ensure the drill-through action uses the field tied to the original measure, which helps retain the drill context:
- Add the Drill Fields:
- Ensure that the field you want to use for the drill-through is added to the report and associated properly.
- Create a Drill-Through Page:
- Include the necessary drill-through filters based on the original measure.
Step 6: Save and Test
- Save your report.
- Verify that the card visuals display
0
instead of BLANK()
.
- Test drill-through functionality to ensure it filters the relevant records correctly.
By following these steps, you can suppress “Blank” with zero and ensure drill-through retains the correct filtering context.
I hope this helps.
Please give DataMentor a try.
Thanks
Keith