Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
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
Solved! Go to Solution.
I'm not sure but I am guessing you want it as a column so you can put it in a slicer? If so, you can add a calculated column to your table that will give you the same result:
Column =
VAR StoreNum = 'Table'[STORE #]
VAR VisitDate = 'Table'[VISIT DATE]
VAR CallCount =
CALCULATE(
COUNTROWS('Table'),
FILTER (
'Table',
'Table'[STORE #] = StoreNum &&
'Table'[VISIT DATE] = VisitDate
)
)
RETURN IF ( CallCount = 1, 2, 1)Hello @Anonymous
The following measure will return the result you are looking for, you will just have to change the name of your table.
Measure =
VAR StoreNum = VALUES('Table'[STORE #] )
VAR VisitDate = VALUES('Table'[VISIT DATE] )
VAR CallCount =
CALCULATE(
COUNTROWS ( 'Table' ),
ALL ( 'Table'[CALL ID] )
,StoreNum
,VisitDate
)
RETURN
IF ( CallCount = 1, 2, 1)I also uploaded my testing .pbix so you can take a look it it: https://www.dropbox.com/s/jyoxwrae8rmz5y8/CallIDCount.pbix?dl=0
The RowCount measure just counts the rows in 'Table'. If we look at a STORE # and VISIT DATE pair we can see the ones that have more than 1 CALL ID. Further, if you click on a line in the first visual it will filter the second visual to show just the CALL ID that hit in that STORE # on that VISIT DATE.
Is there a way to do this measure in Power Query Editor?
I'm not sure but I am guessing you want it as a column so you can put it in a slicer? If so, you can add a calculated column to your table that will give you the same result:
Column =
VAR StoreNum = 'Table'[STORE #]
VAR VisitDate = 'Table'[VISIT DATE]
VAR CallCount =
CALCULATE(
COUNTROWS('Table'),
FILTER (
'Table',
'Table'[STORE #] = StoreNum &&
'Table'[VISIT DATE] = VisitDate
)
)
RETURN IF ( CallCount = 1, 2, 1)This is perfect, thank you!
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 |
|---|---|
| 45 | |
| 38 | |
| 34 | |
| 21 | |
| 17 |
| User | Count |
|---|---|
| 66 | |
| 65 | |
| 31 | |
| 26 | |
| 26 |