Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi,
I am doing some calculations in Power BI with DAX. The calculations should consider the values which can be selected in a filter which is coming from a column. Let's call it H which can have 10 values, but for me only values 1,2,3 and 4 are important. I am working on a formula(let's call it C) which is suppose to calculate a value when values 1 or 2 or 3 is selected(done in a calculated measure called A), a formula when only 4 is selected(in a calulated measure called B) and addition of the both formulas if 4 and either one of the 1,2 or 3 is selected. Of course values of 1,2 or 3 changes the result of the first formula. The formulas currently look like this:
A= calculate(D, AND(H<>"4", H=selectedvalue(H) ) )
B=calculate(E, H="4")
D and E values formulas are very like A and B respectively but they calculate the value of other calcualted measures using the same conditions.
For C I am currently using this:
What is my problem here?
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
User | Count |
---|---|
12 | |
12 | |
8 | |
8 | |
6 |
User | Count |
---|---|
27 | |
19 | |
14 | |
11 | |
7 |