This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi guys,
I have a table which looks like this:
| Store | Phases | Estimated cost |
| J&J | A | 1 |
| J&J | B | |
| J&J | C | 2 |
| J&J | D | 3 |
| TimLee | A | 5 |
| TimLee | B | 3 |
| TimLee | C | |
| TimLee | D | 1 |
In all the cases, if estimatedCost of B is blank C will have some estimated cost or if B has some cost the C will be blank
I have slicer where user can select any store name
I want to create a MEASURE which can do a conditional sum based on the following conditions:
1: if Phase B's estimated cost is blank measure = 1 otherwise measure = 2
Any pointers will be greatly appreciated 🙂
Ta
Shei
Solved! Go to Solution.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Not totally sure on what you are looking for but you can make a table visual with your Store column and this measure. It will show 1 if the B value for that store is blank (and 2 if not).
B Blank = IF(ISBLANK(CALCULATE(MIN(Table[Estimated Cost]), Table[Phases] = "B")), 1, 2)
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Thank mate
I am having trouble with referencing table's columns in a measure. In excel, I would have said,
if(and(Phase = "B",Estimate Value >0), 1, 2)
It is a simple tab and simple if and condition but I am struggling to define it as a measure.
Ta
Shei
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 41 | |
| 40 | |
| 36 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 75 | |
| 61 | |
| 34 | |
| 30 | |
| 25 |