Forum Discussion
Preboat
1 year agoFrequent Visitor
FILTERING PROBLEM
I have my dax code TOTAL Amt = VAR _TDA = CALCULATE(SUM(DE[SUMAMT], DE[STATUS] ="Deed" VAR _TB = SUM(DE[SUMbill]) VAR _RATE = DIVIDE([TAD], [TAB]) VAR _ADJUTOTALS=[TDA] - CALCULATE['DE[TAD], DE...
- 1 year ago
Hi Preboat ,
Thanks for sharing the PBIX.I checked the setup and noticed that the ShowRow logic you had earlier was being used separately, which meant the visual still showed unwanted rows unless filtered explicitly.
I’ve modified the calculation items to embed the ShowRow flag logic directly inside them, so that they return BLANK() when the rate is less than or equal to 0.5.
TDA = IF( [ShowRow_Flag] = 1, SELECTEDMEASURE(), BLANK() )TBA = IF( [ShowRow_Flag] = 1, IF(ISINSCOPE(Append1[Category]), BLANK(), SUM(Append1[SUMbill])), BLANK() )Rate = IF( [ShowRow_Flag] = 1, IF(NOT ISINSCOPE(Append1[Category]), DIVIDE(SELECTEDMEASURE(), SUM(Append1[SUMbill]))), BLANK() )This way, the matrix automatically hides those rows without needing an additional measure or filter pane configuration.
Result:
Attached the pbix file for reference.
Hope this helps. Please reach out for further assistance.
Thank you.
Ashish_Mathur
1 year agoSuper User
Hi,
Share the download link of the PBI file.