Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
In my dataset I have some products that consists of a base fee and then the custommer pays extra per extra item.
The invoice data are available in a table as follow:
| #Invoice | Main_Item | Base_fee_included |
| 1 | ItemA | Yes |
| 2 | ItemB | No |
| 3 | ItemA | No |
| 3 | ItemA | No |
| 4 | ItemA | Yes |
| 4 | ItemB | No |
I want to count the numbers of missing base fees (there can only be one base fee per item and invoice. I started with this messure:
MissingComboItems = Calculate(Count(Table[Combo_Item_Included]), Table[Combo_Item_Included] = "No")
But how do I make it count only 1 missing starting fee on #Invoice2?
Current result (Missing base fees):
ItemA = 2, ItemB = 2
What I want:
ItemA = 1, ItemB = 2
Solved! Go to Solution.
pls try this
Measure = CALCULATE(DISTINCTCOUNT('Table'[#Invoice]),FILTER('Table','Table'[Base_fee_included]="No"))
Proud to be a Super User!
pls try this
Measure = CALCULATE(DISTINCTCOUNT('Table'[#Invoice]),FILTER('Table','Table'[Base_fee_included]="No"))
Proud to be a Super User!
You can try the following.
Proud to be a Super User! | |
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 38 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 34 | |
| 33 | |
| 30 |