The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi All,
I have a difficulty to calculate the total of True/False from measures. FYI, there is no column here.
Solved! Go to Solution.
Hi @acarolina
When working with DAX measures in Power BI, it's important to remember that measures calculate values dynamically based on the current context established by filters, rows, and columns in your report. In your case, you've created a measure, , that evaluates to either -1 or BLANK() depending on whether an employee has changed status from expat to non-expat between two time periods. However, you're facing an issue when trying to aggregate this measure across multiple rows because you're essentially trying to count occurrences of a condition rather than summing numerical values directly associated with each row in a table.
StatusChangeCount =
SUMX(
VALUES(EmployeeTable[EmployeeID]),
IF(
[Expat HC M-1] = 1 && [Non-Expat HC CM] = 1,
1,
0
)
)
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @acarolina
When working with DAX measures in Power BI, it's important to remember that measures calculate values dynamically based on the current context established by filters, rows, and columns in your report. In your case, you've created a measure, , that evaluates to either -1 or BLANK() depending on whether an employee has changed status from expat to non-expat between two time periods. However, you're facing an issue when trying to aggregate this measure across multiple rows because you're essentially trying to count occurrences of a condition rather than summing numerical values directly associated with each row in a table.
StatusChangeCount =
SUMX(
VALUES(EmployeeTable[EmployeeID]),
IF(
[Expat HC M-1] = 1 && [Non-Expat HC CM] = 1,
1,
0
)
)
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You are my savior! thanks a lot... it worked!
You cannot measure a measure directly. You need to materialize it first.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
12 | |
8 | |
8 |