Forum Discussion
Show a specific column data When no filter is selected
- Anonymous4 years ago
Hi Alde ,
I have created a simple sample, please refer to my pbix file to see if it helps you.
Create a measure.
Measure = IF(ISFILTERED('Table'[month])=TRUE(),FIRSTNONBLANK('Table'[value%],1),CALCULATE(SUM('Table'[value%]),'Table'[month]=SELECTEDVALUE('Table (2)'[date])))What cause your error?
The following comparisons are not supported:
-
- Comparing to a column to a measure. SalesHeader[TerritoryID] = [LargestTerritory]
- Comparing a column to a an aggregate value. SalesHeader[TerritoryID] = MAX(TerritoryID[TerritoryID]])
- Comparing a column to a What-If parameter. SalesHeader[TerritoryID] =TerritoryParameter[TerritoryParameter Value]
If I have misunderstood your meaning, please provide your pbi file without privacy information and your desired output.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
-
Hi Anonymous
Here's the PBI sample file and attached an image for my idea.
Please help, thank youuuuu <33
https://drive.google.com/file/d/128YEVdMEsiBYfMy-R6J4SowibiA-sXoC/view?usp=sharing
OBActual_OB =
SUMX('Col_Type',
VAR CurrentType = 'Col_Type'[Col_Type]
Return
if
(CurrentType="OB Actual",
IF
(ISFILTERED('ORDER_TABLE'[MONTH])=False(),
CALCULATE(Sum('obcb'[OB Actual]), 'obcb'[Month] = "mar"),
FIRSTNONBLANK('obcb'[OB Actual],1)
)
)
)
Hi Alde ,
I don't have access so I can't get your pbix file.Could you please provide again or use another way?
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Alde4 years agoFrequent Visitor
Anonymous
Finally I got the solution, it didn't work because I put the CurrentMonth column in the same table of the month used to check against, now i created another table without making any relationship and use it in the conditional query.
OBActual_OB = SUMX('Col_Type', if ('Col_Type'[Col_Type]="OB Actual", IF (ISFILTERED('ORDER_TABLE'[MONTH])=True(),FIRSTNONBLANK('obcb'[OB Actual],1), CALCULATE(Sum('obcb'[OB Actual]),'obcb'[Month]= SELECTEDVALUE(lastdatamonth[LastMonth])) ) )) - Alde4 years agoFrequent Visitor
I'll open to public, please access again a few sec later.
- Alde4 years agoFrequent Visitor