Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone
I am try to get how many days that each customer visit the same location during a given period/range.
Below is the query I used to create a new column:
Repeat_Visits =
Thanks everyone!
The reason I am using this complex query is to create a new column and use it as a fliter or to compute.
Thus, I do not think I can use measure here.
Hi,
This is confusing. Why would my measure not work?
Don't get me wrong. Your measure work perfectly funtionally.
Yet, I feel like I need a column for a filter in my case, and I guess we are not allowed to use measure as a filter yet, right?
Thanks again.
Hi @Anonymous ,
Just use a measure below:
Measure = COUNT('Table'[Date])
Then drag Customer_ID and Location_Name to the Table visual with the measure above and you will see:
Part of your sample:
The result is :
For the related .pbix file,pls click here.
Hi,
Drag Customer_ID and Location_Name to the Table visual and write this measure
=COUNTROWS(Data)
Hope this helps.
I think simple distinctcount will do it.
What is the advantage other var are adding?
Distinct count = CALCULATE(DISTINCTCOUNT('data'[Date]))
And plot it against customer and location in visual.
If you need a kind of subtotals. try ALLEXCEPT
https://community.powerbi.com/t5/Desktop/ALLEXCEPT-in-a-multitable-setup/td-p/403205
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |