The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello Power BI Experts
I'd like to ask a simple ALL () function. I am lost by ALL (). NumOfAllColors= COUNTROWS(ALL('Product'[Color])). It returns 16 on all rows. Literally, it does what the formular says. After I re-read the formular, I just removed Product[Color] column, NOT Product[Category], should Product[Category] filter still works? I mean Product[Category] filter should apply to the final result?
Category | NumOfColors | NumOfAllColors | |
Audio | 10 | 16 | |
Cell Phones | 14 | 16 | |
Computers | 8 | 16 | |
TV and Video | 2 | 16 | |
.......... | ...... | ....... | |
All returns all rows in a table, ignoring any filters that have been applied.
When you draw a visural table, matric or graph then x / y / z filters are applied.
In your example the Category filter.
Since you have not explained where Category or NumOf Colouirs comes from.
I can't guesse and help you any more.
We want to help you but your description is too vaugue. Please write it again clearly.
Please DON'T copy & paste your DAX that does not work and expect us to fathom what you want to do. That is crazy. 😀
Please just give a simple non technical functional decscription of what you want, then let us suggest the DAX. Thank you.
Provide example input data as table text (not a screen print) so we can import the data to build a solution for you.
Also provide the example desired output, with a clear description of the process flow.
Remember not to share private data ... we don't want you to get into trouble. 😧
Take care to use the same table and field names in the input, output and description so we can understand your problem and help you.
You will get a quick response if you put time and effort into writing clear problem descriptions.
Vaugue descriptions can waste your time and ourtime.
Look foward to helping you when the above information is forthcoming.