Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Solved! Go to Solution.
Hey Everyone,
Just tossing this bit of DAX language in here to show that the text can change based on the drill down in a chart. Just took a bit of trial and error on my part. See example below:
if(hasonevalue(name),
values(name) & " text text text " & [measure] & " above plan " & etc.... ,
if(hasonevalue(name)&&hasonevalue(state),
values(name) & " text text text " & [measure] & " above plan by" & [state],
etc...
The first IF statement will produce the text only if a 'name' is chosen. The 2nd IF statement will produce text if both a 'name' and a 'state' is chose....so drilling down on a name in a chart to get to the level with a state..then selecting a state will produce the statement.
Hey Everyone,
Just tossing this bit of DAX language in here to show that the text can change based on the drill down in a chart. Just took a bit of trial and error on my part. See example below:
if(hasonevalue(name),
values(name) & " text text text " & [measure] & " above plan " & etc.... ,
if(hasonevalue(name)&&hasonevalue(state),
values(name) & " text text text " & [measure] & " above plan by" & [state],
etc...
The first IF statement will produce the text only if a 'name' is chosen. The 2nd IF statement will produce text if both a 'name' and a 'state' is chose....so drilling down on a name in a chart to get to the level with a state..then selecting a state will produce the statement.
Its going to depend on your slicer and what you can draw from it. You could make use of FIRSTNONBLANK to get the text value of Johns name and then append it to the text you want.
No, the Dax language won't accept it as even though you know you've constrained the circumstances it still needs to treat it as a list of information. Using "FirstNonBlank" gets around this and stops on the first value it finds thats that not blank. Its going to have the performance saving you are expecting when you say you don't want a lookup.
K...so now I can't get a summarize columns expression to work. Any suggestions?
Summarize Test = SUMMARIZECOLUMNS(Dispatch[MANAGER_NAME],Dispatch[MARKET],"Market",SUM(Dispatch[Dispatch Count]))
I'm basically trying to get a dispatch count grouped by Manager & Market.
This is the full DAX code I'm using to find the max disp count by manager/market
MAXX(SUMMARIZECOLUMNS(Dispatch[MARKET],Dispatch[MANAGER_NAME],"Test",Dispatch[Disp Count]),[Test])
any help is greatly appreciated!
Hi @codyraptor,
Could you post your table structures with some sample data and your expected result? So that we can better assist on the measures.
Regards
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
84 | |
84 | |
73 | |
49 |
User | Count |
---|---|
143 | |
132 | |
110 | |
65 | |
55 |