Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have been struggling trying to get this measure correct. I need to have a count in my table for the survey ID so that I can see how many surveys there were for each dealer in the past month that answered the dealer experience question on the survey. The issue with the measure below happens when I add in the Dates in Period function. I need the count to only be for the past month of data and I need the date function to ignore the dealer, territory, and division filters on the table. When I don't have the ALL function in the calculation, the date changes depending on the dealer because some haven't filled out a survey for a couple of months. If you can help me come up with a solution to the "True/False expression does not specify a column. Each True/False expression used as a table filter expression must refer to exactly one column. " error, that would be great!
Hello @Anonymous,
Can you please try this:
Survey Count Last Month =
CALCULATE(
COUNTA(Query1[Survey_ID]),
Query1[question] = "Dealer Experience",
DATESINPERIOD(
'Date Table'[Date],
MAX('Date Table'[Date]),
-1,
MONTH
),
ALL('Query1'[Dealer]),
ALL(Query1[Service_Territory]),
ALL(Query1[Service_Division])
)
Hope this helps!
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 |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 33 | |
| 32 | |
| 32 |