Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hi All,
For the following table below, how should I write in dax for making grand total become false, if they contain false. such as Accessories contains false and I want the grand total becoming false.
Solved! Go to Solution.
Hi @Anonymous
Please try to adjust the measure as follows
NewMeasure =
VAR T1 =
ADDCOLUMNS (
VALUES ( ProductCategory[ProductCategoryName] ),
"@Flag",
CALCULATE (
IF ( SUM ( InternetSales_USD[SalesAmoun_USD] ) > 200000, TRUE (), FALSE () )
)
)
VAR T2 =
SELECTCOLUMNS ( T1, "@@Flag", [@Flag] )
RETURN
IF ( FALSE () IN T2, FALSE (), TRUE () )
Hi,
I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
It is for creating a measure.
True or false measure: =
VAR _newtable =
ADDCOLUMNS (
SUMMARIZE ( InternetSales, Category[Category], 'Year'[Year] ),
"@condition",
IF (
CALCULATE ( SUM ( InternetSales[SalesAmount] ) ) > 200000,
TRUE (),
FALSE ()
)
)
RETURN
IF (
COUNTROWS ( FILTER ( _newtable, [@condition] = FALSE () ) ) >= 1,
FALSE (),
TRUE ()
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
Hi,
I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
It is for creating a measure.
True or false measure: =
VAR _newtable =
ADDCOLUMNS (
SUMMARIZE ( InternetSales, Category[Category], 'Year'[Year] ),
"@condition",
IF (
CALCULATE ( SUM ( InternetSales[SalesAmount] ) ) > 200000,
TRUE (),
FALSE ()
)
)
RETURN
IF (
COUNTROWS ( FILTER ( _newtable, [@condition] = FALSE () ) ) >= 1,
FALSE (),
TRUE ()
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
Hi @Anonymous
Please try to adjust the measure as follows
NewMeasure =
VAR T1 =
ADDCOLUMNS (
VALUES ( ProductCategory[ProductCategoryName] ),
"@Flag",
CALCULATE (
IF ( SUM ( InternetSales_USD[SalesAmoun_USD] ) > 200000, TRUE (), FALSE () )
)
)
VAR T2 =
SELECTCOLUMNS ( T1, "@@Flag", [@Flag] )
RETURN
IF ( FALSE () IN T2, FALSE (), TRUE () )
User | Count |
---|---|
17 | |
17 | |
14 | |
12 | |
12 |
User | Count |
---|---|
10 | |
9 | |
8 | |
7 | |
7 |