Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply

Display my data values on a graph without calculated functions like sum, count etc

Hi experts.

I want to just display my data on the graph without using count,sum,min,max.avg functions etc as in my case values are already aggregated from the datastore. Does powerBI provides a way or option of achieving it?

I didnt see "Dont summarize.." for the column values display on a graph. Can u pls help?

 

Thanks,

ims

 

23 REPLIES 23
DurveshC
New Member

Just wondering if you have received the solution to this. I am stuck as well. 

bjoshi
Resolver I
Resolver I

@irfanreporting

 

How about converting the data type of the aggregated column to text?

 

Or,

Selecting the column from the field list and then selecting Don't summarize from Modeling Tab.

summarize.jpg

 

 

 

 

Vvelarde
Community Champion
Community Champion

@irfanreporting

 

Hi, Create a Measure

 

Mymeasure=Values(Table[Column])




Lima - Peru

Thanks a lot for your response, when I have created a measure on the column. it gives the following error.

image.png

 

 

@irfanreporting

 

Are you using a table or Matrix visualization?.

 

In that case you need a little modification to the measure.

 

mymeasure=IF(HASONEVALUE(Table[Column]),VALUES(Table[Column]))




Lima - Peru

Hi, I am also caught with the same situation & used the same method as you described above but I could not understand the logic behind it , why we used hasonevalue along with values in the measure.

Please explain whenever you see my post!!

Thank you!!

Thank you for the quick response. I am using a table of "x" columns and displaying a graph for 2 columns with the same values as displayed in the table.

for ex: In my case, I have lists of ID's and for each ID have some already aggregated data i.e requests/secs from the database table so I just want to display those ID's on X-axis and individual bars with corresponding requests/secs values upon each ID bar.

Is this possible? Can you please help?

@irfanreporting

 

Sorry my late response, could you post Sample Data and the expected result.

 

Thanks




Lima - Peru

Thank you for the responses and help, Please find my sample dataset below. So I just want to display the data as is on the graph with Scenarios 1,2,3,4,5 on x-axis and EnqueuePerSecs,DequeuePerSecs,ProcessedPerSecs values on Y-axis without any MIN,MAX,AVG etc.

 

DateRunTypeScenarioNodesEnqueuePerSecsDequeuePerSecsProcessedPerSecsTimeToEnqueueMs_99TimeToEnqueueMs_95TimeToDequeueMs_99TimeToDequeueMs_95
00:00.010 Nodes110706462576129740650094
00:00.010 Nodes2104653693691609938813219
00:00.010 Nodes3104614614611109191721110
00:00.010 Nodes410385345426234413441031422
00:00.010 Nodes510369368368172109197988813

Hi @irfanreporting,

In desktop, there is "Don't summarize" in table visual. For your requriement, you create a line or clustered cloumn chart, so it must have MIN, MAX, AVG etc aggregated functions if you want to select any number fields as value. You'd better create a measure as @Vvelarde posted, then select the measure as value.

For example, create two measure using the formulas.

DequeuePerSecs-T = IF(HASONEVALUE(Test2[DequeuePerSecs]),VALUES(Test2[DequeuePerSecs]))

EnqueuePerSecs-T = IF(HASONEVALUE(Test2[EnqueuePerSecs]),VALUES(Test2[EnqueuePerSecs]))


Then add the 'Scenario' as x-axis level, the measure as values, you will get expected result.

1.PNG


If you have other issues, don't hesitate to let me know.

Best Regards,

Angelia

Dear Angela,

Based upon your response, I have created measures but seems to be displaying empty values.

Also I wanted to tell you that in my case, Scenario 1,2,3,4,5..etc can run everyday so we do have same set of scenarios on every day. So u could see duplicates record of scenarios 1,2,3,4,5 if u select multiple dates.

 

Thanks a lot for your response and help, For some reason I am not getting any values displayed on the graph after following all the steps. Can u pls help? Did I miss something?

Created Measure:

DequeuePerSecs-My = IF(HASONEVALUE('MyTable1'[DequeuePerSecs]),VALUES('MyTable1'[DequeuePerSecs]))

screenshot:

image.png

 

 

DateRunTypeScenarioNodesEnqueuePerSecsDequeuePerSecsProcessedPerSecsTimeToEnqueueMs_99TimeToEnqueueMs_95TimeToDequeueMs_99TimeToDequeueMs_95
00:00.010 Nodes110706462576129740650094
00:00.010 Nodes2104653693691609938813219
00:00.010 Nodes3104614614611109191721110
00:00.010 Nodes210385345426234413441031422
00:00.010 Nodes11036936836817210919798

@irfanreporting

 

Hi, i'm back,

please try with this:

 

Created Measure:

DequeuePerSecs-My = IF(HASONEVALUE('MyTable1'[Scenario]),VALUES('MyTable1'[DequeuePerSecs]))




Lima - Peru

This solution does not work if I want to use a “clustered bar chart” and I want to put a new measure in the x-axis. What is the solution?

Thank you Victor, but I got the error as shown.

 

image.png

Also when I present the same values on the table instead of graph then I m seeing empty values for the measure.

If you see in the screenshot, I am seeing actual values for DequeuePersecs but for created measure "DequeuePerSecs-My" measure shows empty values.

image.png

@irfanreporting

 

Just for testing what happen if you add date to the table.




Lima - Peru

I got some values in this case.

 

image.png

What is the expected output based on the sample data on this 2nd page?

I don't see how else you can diplsay data for each Scenario that has multiple values WITHOUT aggregating?

EndResult2.png

And as you can see you don't really need any Measures to do this - just drag both columns.

 

Thankyou for the response, Are you calculating the "TheDate" measure in the above resolution? Please find my sample dataset attached. I couldnt able to display dates with the corresponding values. In my case, Date is the unique field where I ran duplicated scenarios.What would be the best way I can display the data on the graph to show each scenario with the corresponding Enqueue/secs,Dequeue/secs without using sum,min.max functions. Just wanted to use the same data as is in the table for displaying on a graph. Whenever I drag in any of the above fields it is showing only min.max,count,avg as the options in the menu

ScenarioEnqueuePerSecsDequeuePerSecsTimeToEnqueueMs_95TimeToEnqueueMs_99TimeToDequeueMs_95TimeToDequeueMs_99Date
116378153.952813444/2/2017 0:00
1307163147474/2/2017 0:00
2331091721722514/2/2017 0:00
355636378784/3/2017 0:00
177637878944/2/2017 0:00
1213781562342814/2/2017 0:00
3286163147634/3/2017 0:00
4286163147634/8/2017 0:00
1296163147474/6/2017 0:00
1296163147474/7/2017 0:00
5296163147634/2/2017 0:00
6331091881722814/2/2017 0:00
166636378784/8/2017 0:00
166636378794/6/2017 0:00
566637878944/2/2017 0:00
666637878944/7/2017 0:00
166787894944/3/2017 0:00
1400115476331634/8/2017 0:00
11151157894941094/8/2017 0:00
10001181.43570.482021.248617.724/2/2017 0:00
10001669.440542254.843924.364/3/2017 0:00
108382666310947784/6/2017 0:00
108422696310931784/7/2017 0:00
1000781092192814/3/2017 0:00
100078113.161562504/2/2017 0:00
10237237781251252034/7/2017 0:00
10292292781251092034/6/2017 0:00
104052284794471254/9/2017 0:00
10228228941411252664/9/2017 0:00

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.