Forum Discussion
Parameter in summarize
- Anonymous1 year ago
Hi Anonymous ,
Thank you for reaching out to us on Microsoft Fabric Community Forum. Also thanks Nasif_Azam and rajendraongole1 for the helpful insights!
I tried to recreate it on my local upon my understanding.Please refer the screenshot and file for your reference.
If this answer meets your requirement,give us kudos and consider accepting it as solution.If still require further assistance, feel free to reachout!
Regards,
Pallavi G.
Thanks for the update. If the revised approach didn’t solve the issue, let’s take a deeper look at possible reasons and other workarounds:
Potential Issues
[Parameter Value] might not be evaluated as expected
If [Parameter Value] is coming from a slicer or a disconnected table, it must be a scalar. Use SELECTEDVALUE() to ensure it returns a single value:
VAR Threshold = SELECTEDVALUE('Parameter Table'[Value], 500) // fallback to 500
Threshold might be blank
If no value is selected in the parameter slicer, [Parameter Value] may return blank, causing all rows to be filtered out. You can guard against this with:
VAR Threshold = IF(ISBLANK(SELECTEDVALUE('Parameter Table'[Value])), 0, SELECTEDVALUE('Parameter Table'[Value]))
Data Type Mismatch
Double-check if CustomsValue and the parameter are both numeric. If one is text and the other is numeric, the comparison may silently fail.
Try this full version with explicit fallback and clean context flow:
Filtered_Customs_Data_Input =
VAR Threshold = SELECTEDVALUE('Parameter Table'[Value], 0) // default to 0 if nothing selected
VAR CustomsWithTotal =
ADDCOLUMNS(
SUMMARIZE('CBAM_Goods_InScope', [EntryIdentifier]),
"TotalCustomsValue", CALCULATE(SUM('CBAM_Goods_InScope'[CustomsValue]))
)
VAR FilteredIdentifiers =
FILTER(
CustomsWithTotal,
[TotalCustomsValue] > Threshold
)
RETURN
FILTER(
'CBAM_Goods_InScope',
'CBAM_Goods_InScope'[EntryIdentifier] IN
SELECTCOLUMNS(FilteredIdentifiers, "EntryIdentifier", [EntryIdentifier])
)Debug Tip
Temporarily add a measure like this to check what your parameter is returning:
Measure_CheckThreshold = SELECTEDVALUE('Parameter Table'[Value])Add it to a card visual to verify it’s not blank or unexpected.
If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.
Best Regards,
Nasif Azam
Nasif_Azam Thanks a lot for your quick response. Not sure if your response is generated by Chat GPT but it is not giving expected output.
- Nasif_Azam1 year agoSuper User
A small portion of my response was generated by Chat GPT because your question was not very clear and to provide a correct answer you have to mention the data modeling as well as sclicer and matrix or any visuals screenshot you have your current report. Without those information, it was hard to provide or understand the problem you face.
Best Regards,
Nasif Azam- Anonymous1 year agoNot applicable
Nasif_Azam It has confidential data hence cannot share it. Sorry for not being clear.
Anonymous Has shared with some sample data you may if you can help me with that.