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.
Hello,
I am struggling with the ALL and FILTER here. I have a report conneting live to Tabular model.
Data model is like this -
CarModel Details Date Country
ModelName ---------> ModelName, CarID, Delivery Year Year CountryCode
,RetailCountryCD
I want to count the ratio of "total selected model cars" to the "toal cars" of that year and country.
Relationship : "CarModel" and "Details" tables are connected on "ModelName". I have a slicer with "ModelName" from" CarModel " table. Another slicer is with "CountryCode"
I have a matrix where Year is used as column and shows the ratio.
but not in above with Year and Country filters.
Regards
Madan
Solved! Go to Solution.
@Anonymous
Try changing the reference in your measure from ALL(Details[ModelName])) to ALL(CarModel[ModelName]) -assuming that you are using the CarModel[ModelName] as your slicer.
var cptotal = CALCULATE( COUNT(Details[CarID]);
Details[Delivery Year]= selectedyear ;
Details[RetailCountryCD]= selectedcountry;
ALL(CarModel[ModelName]))
Proud to be a Super User!
Paul on Linkedin.
Can you share sample data and what you want to expect? Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
@Anonymous
Try changing the reference in your measure from ALL(Details[ModelName])) to ALL(CarModel[ModelName]) -assuming that you are using the CarModel[ModelName] as your slicer.
var cptotal = CALCULATE( COUNT(Details[CarID]);
Details[Delivery Year]= selectedyear ;
Details[RetailCountryCD]= selectedcountry;
ALL(CarModel[ModelName]))
Proud to be a Super User!
Paul on Linkedin.
I have redeployed and refreshed the model and this has started working. Thanks @PaulDBrown
Thanks. But seems this has no impact. Result is same.
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 |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |